C++11 development in Qt Creator

Old 1 Comment on C++11 development in Qt Creator 343

For those who develop C++ applications with the Qt SDK using Qt Creator IDE, you might have noticed that Qt Creator doesn’t use C++11 and above standards while compiling.

Actually, Qt Creator hasn’t yet incorporated C++1y (C++11 and above)  features during the make process, even though you have the latest C++ installed.

So, to take advantage of C++1y features, you need to add the following line in the project file (the .pro file which holds the project meta-data):

QMAKE_CXXFLAGS += -std=gnu++1y

In fact, this can be used to further specify more flags if you wish to do so. Similarly, other type of flags may be added which are supported by qmake.

I had some problems figuring this out initially, so I hope this post will help those beginners getting a hold of Qt along with the modern C++ standards.


Vivek Prajapati

A moderate level programmer interested in administration and Arduino. Familiar with C++, Java, PHP, C# with my favourite being C++. Just finished my bachelor's degree in IT.

Related Articles

1 Comment

  1. C Dunne March 16, 2015 at 3:44 pm

    ..thanks very much, was helpful 😉

Leave a comment

Back to Top