如何使用Qt Creator作为一般的C ++ IDE(不使用Qt库)? [英] How can Qt Creator be used as general C++ IDE (no usage of Qt library)?

查看:399
本文介绍了如何使用Qt Creator作为一般的C ++ IDE(不使用Qt库)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找一个不错的C ++ IDE,我真的很喜欢Qt Creator的功能和性能,我计划使用它来使Qt应用程序在路上。但是,现在,我只想使用Qt creator作为通用C ++ IDE,而不使用Qt库。如何使用Qt creator只是为了正常的C ++开发?我需要做什么配置?我非常感谢您的一些详细指导。



感谢您的时间和合作。我很感激,我希望很快听到你的消息。

解决方案

我经常这样做。




  1. 使用qmake项目文件:除去所有剩余的Qt文件,将它们添加到项目文件:

      CONFIG  -  = qt 
    DEFINES - = UNICODE QT_LARGEFILE_SUPPORT
    pre>

    请记住,qmake本身仍然需要构建。因此,您很可能需要安装Qt。


  2. 使用Cmake项目文件。


这两种情况都可以依赖Qt Creator的完全支持(对于左窗格中的文件和项目)。 git和svn支持在Qt Creator是真棒


I've been looking around for a nice C++ IDE, and I really like the features and performance of Qt Creator, and I plan to use it to make Qt based applications down the road. However, for right now, I just want to use Qt creator as general purpose C++ IDE without the use of the Qt library. How can I go about using Qt creator just for regular C++ development? What configurations do I need to make? I would appreciate some detailed guidance with this.

Thank you for your time and cooperation. I appreciate it, and I hope to hear from you all soon.

解决方案

I do it constantly.

You have two options:

  1. use qmake project files: to get rid of all the remaining Qt stuff, add these to your project file(s):

    CONFIG -= qt
    DEFINES -= UNICODE QT_LARGEFILE_SUPPORT
    

    Remember that qmake itself is still required to build. So you'll most likely need a Qt installation.

  2. use Cmake project files.

Both cases can count on Qt Creator's full support (for files and projects in the left pane). git and svn support in Qt Creator is awesome

这篇关于如何使用Qt Creator作为一般的C ++ IDE(不使用Qt库)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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