在Qt Creator中创建Win32应用程序 [英] Creating a Win32 Application in Qt Creator

查看:666
本文介绍了在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.


  1. 为Qt控制台应用程序创建项目

  2. 从.pro文件中删除 QT + = core

  3. 从main.cpp中删除所有Qt内容

  4. 包括必需的WinAPI标头

  5. 仅编写C代码

  6. ...

  7. Profit

  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

这篇关于在Qt Creator中创建Win32应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆