Use C ++ 11 in Qt Creator

I use Qt Creator on Ubuntu, and I would like to use the new features of C ++ 11, but they are not enabled by default.

How to configure Qt Creator to support the new features of C ++ 11?

+6
source share
1 answer

You can achieve this by adding:

QMAKE_CXXFLAGS += -std=c++11 

into your .pro file.

+9
source

Source: https://habr.com/ru/post/948881/


All Articles