[Qt-interest] Precompiled headers in Visual Studio

Donovan Parks donovan.parks at gmail.com
Sun Dec 13 22:03:49 CET 2009


Hello,

I'm just getting started with Qt in Visual Studio and could use a
little help. I'd like to use precompiled headers, but can't determine
how to set the precompiled header filename for moc files. At present,
I have precompiled headers setup and defined in a file called
Precompiled.hpp. This works perfectly except for one file
(moc_myProject.cpp). This file gets automatically generated from a Qt
Designer form. This file includes StdAfx.h. How can I modifying the
"moc'ing" of my project so it includes Precompiled.hpp instead of
StdAfx.h?

Thanks for any and all advice.

Cheers,
Donovan



More information about the Qt-interest-old mailing list