How can Qt Creator be used as general C++ IDE (no usage of Qt library)?

Amir Rustamzadeh picture Amir Rustamzadeh · Apr 21, 2011 · Viewed 20.2k times · Source

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.

Answer

rubenvb picture rubenvb · Apr 21, 2011

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