Creating a Win32 Application in Qt Creator

爷,独闯天下 提交于 2019-12-11 01:28:49

问题


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.

  1. Create project for Qt Console Application
  2. From .pro file remove "QT += core"
  3. From main.cpp remove all Qt stuff
  4. Include required WinAPI headers
  5. Write C-code only
  6. ...
  7. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!