问题
I'm looking to create a win32 application in Qt Creator - is this possible? If so, how would I go about doing it? My preference would definitely be to use native C code (and the native API) if possible.
回答1:
Yes, you can use Qt Creator just as an IDE. It doesn't force you to use Qt or C++ only.
- Create project for Qt Console Application
- From .pro file remove "QT += core"
- From main.cpp remove all Qt stuff
- Include required WinAPI headers
- Write C-code only
- ...
- Profit
回答2:
If you don't want to be tied to Qt at all, Qt Creator supports CMake. Create your CMakeLists.txt then open the file as a project in Qt Creator.
来源:https://stackoverflow.com/questions/9386426/creating-a-win32-application-in-qt-creator