It's ok to include "global" includes like QtGui when using precompiled headers. This boosts the precompiled header size but makes sure everything is included and the compilation remains very fast. When using QtGui inclusion in regular files (especially header files) compilation time increases significantly as the preprocessor has lots of more work to do.