Use C++11 in Qt Creator [duplicate]
问题 This question already has answers here : How to enable C++11 in Qt Creator? (6 answers) Closed 4 years ago . I'm using Qt Creator on Ubuntu, and I'd like to use the new C++11 features, however they are not enabled by default. How can I configure Qt Creator to support the new C++11 features? 回答1: You can achieve this by adding: QMAKE_CXXFLAGS += -std=c++11 to your .pro file. 来源: https://stackoverflow.com/questions/17510897/use-c11-in-qt-creator