Some Qt related fixes.