I am using the Visu开发者_Python百科al C++ 2010 compiler. How can Qt be compiled in Visual C++?
The current version of Qt (4.6) doesn't support Visual Studio 2010: http://doc.qt.nokia.com/4.6/supported-platforms.html However as you can see on that link, Qt 4.7 does plan to support it.
Can you use Visual Studio 2008 instead? I have been using it with the Qt plugin. You might need the full version of VS 2008 though - I don't think you can install the Qt plugin in the Express version.
If the full version of Visual Studio 2008 isn't an option, you might be better off using Eclipse with Qt integration, or QtCreator (available from the Qt website.) If you are planning on compiling your Qt project on other platforms, one of these would probably be a better choice in any case, since the Visual Studio project format doesn't translate to other platforms (to my knowledge.)
if you want, I can send you a detailed description of the installation and compile procedure with Visual Studio 2008
精彩评论