C++ Qt – How to add “-std=c++11” to the makefile which is generated by qmake?

You can add the following to the Qt .pro for C++11: –

CONFIG += c++11

As of Qt 5.4, C++14 can be enabled with

CONFIG += c++14

Leave a Comment