Search code examples
c++c++11qt-creatorqmake

Add C++11 support in each Qt Creator project


I've been using Qt Creator lately, and I find myself editing the .pro file with QMAKE_CXXFLAGS += -std=c++11 quite frequently.

Can I somehow modify the new project wizard to automatically add that build setting?

I'm using Qt Creator 2.7.0.


Solution

  • You can find the files the wizards are using in the following directory:

    C:\Qt\Qt5.0.2\Tools\QtCreator\share\qtcreator\templates\wizards

    (As you can see I am using Qt 5.0.2 on Windows so the given path might be a little different on your computer if you are using another Qt version or another operating system.)