Qt wiki will be updated on October 12th 2023 starting at 11:30 AM (EEST) and the maintenance will last around 2-3 hours. During the maintenance the site will be unavailable.
How to use C++11 in your Qt Projects
Jump to navigation
Jump to search
En Ar Bg De El Es Fa Fi Fr Hi Hu It Ja Kn Ko Ms Nl Pl Pt Ru Sq Th Tr Uk Zh
At this moment (February 2015) qmake supports enabling C++11 (and now C++14) support via the CONFIG option in your .pro file. According to the qmake 3.0 manual that comes with Qt 5.4.0 (qmake reference) you just need to add
CONFIG += c++11
or
CONFIG += c++14
C++11 support is enabled. This option has no effect if the compiler does not support C++11. By default, support is disabled.