Supported C++ Versions: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
(Created page with "== For Code that uses Qt == See https://doc.qt.io/qt-6/supported-platforms.html. == For Qt Code == The minimum version is in qcompilerdetection.h. At the time of writing, i...")
 
(Update link with fixed commit, add instructions for finding the check)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== For Code that uses Qt ==
==For code that uses Qt==


See https://doc.qt.io/qt-6/supported-platforms.html.
See https://doc.qt.io/qt-6/supported-platforms.html.


== For Qt Code ==
==For Qt code==


The minimum version is in qcompilerdetection.h. At the time of writing, it can be found on [https://code.qt.io/cgit/qt/qtbase.git/tree/src/corelib/global/qcompilerdetection.h#n1191 this line].
The minimum version is in qcompilerdetection.h. At the time of writing, it can be found on [https://code.qt.io/cgit/qt/qtbase.git/tree/src/corelib/global/qcompilerdetection.h?id=1ac2386d06276dbb77ce215553f6a3d3e70f8e1f#n1314 this line]. Search for "Compiler version check" if the line has since changed.


The maximum version is in qtbase/configure.cmake. Features for C++ standards greater than the current maximum have AUTODETECT OFF, which means they have to be enabled manually.
The maximum version is in qtbase/configure.cmake. Features for C++ standards greater than the current maximum have AUTODETECT OFF, which means they have to be enabled manually.
[[Category:Developing Qt]]
[[Category:Developing with Qt]]

Latest revision as of 01:05, 21 July 2025

For code that uses Qt

See https://doc.qt.io/qt-6/supported-platforms.html.

For Qt code

The minimum version is in qcompilerdetection.h. At the time of writing, it can be found on this line. Search for "Compiler version check" if the line has since changed.

The maximum version is in qtbase/configure.cmake. Features for C++ standards greater than the current maximum have AUTODETECT OFF, which means they have to be enabled manually.