在Qt Creator中创建Win32应用程序 [英] Creating a Win32 Application in Qt Creator
本文介绍了在Qt Creator中创建Win32应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在寻找在Qt Creator中创建Win32应用程序-这可能吗?如果是这样,我将如何去做?我的喜好肯定是尽可能使用本机C代码(和本机API)。
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.
推荐答案
是的,您可以将Qt Creator用作IDE。并不会强迫您仅使用Qt或C ++。
Yes, you can use Qt Creator just as an IDE. It doesn't force you to use Qt or C++ only.
- 为Qt控制台应用程序创建项目
- 从.pro文件中删除 QT + = core
- 从main.cpp中删除所有Qt内容
- 包括必需的WinAPI标头
- 仅编写C代码
- ...
- Profit
- 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
这篇关于在Qt Creator中创建Win32应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文