Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 446
Amir Rustamzadeh Avatar asked Apr 21 '11 18:04

Amir Rustamzadeh


People also ask

What is Qt Creator used for?

Qt Creator is a cross-platform integrated development environment (IDE) built for the maximum developer experience. Qt Creator runs on Windows, Linux, and macOS desktop operating systems and allows developers to create software across desktop, mobile, and embedded platforms.

What is the difference between Qt and Qt Creator?

Qt creator can't build and debug any code (except perhaps, you want to use it for other reasons) without Qt because Qt contains the necessary tools for that purpose. So download Qt Creator alone if you already have Qt or want to update your old Qt creator and download Qt 5.4.

Is Qt Creator good IDE?

QtCreator is stable enough and a comfortable IDE, although compile/debug cycles are slower on Windows than with Visual Studio. It doesn't have all the fancy features Visual Studio offers, but after using it for a while I just realized I wasn't missing them.


2 Answers

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

like image 167
rubenvb Avatar answered Sep 22 '22 05:09

rubenvb


I started using Qt Creator recently because I spend more and more time on my 13" laptop and just love the way it utilizes space. Other than that, it is feature-rich, fast, reliable and Qt isn't bad at all. As for C++ only IDE, it is more than welcome in my life.

The only other IDE that I love as much as Qt Creator is Code::Blocks. (I often switch between the two, depending on which machine I use)

like image 25
tsaulic Avatar answered Sep 23 '22 05:09

tsaulic