MeVisLab / pythonqt

Dynamic Python binding for Qt Applications
https://mevislab.github.io/pythonqt/
GNU Lesser General Public License v2.1
251 stars 89 forks source link

Force C++11 for older Qt versions with obsolete compilers (f.e. GCC 4.9.2) #189

Closed iakov closed 7 months ago

iakov commented 9 months ago
iakov commented 7 months ago

Any objections? Or can be merged? ;)

mrbean-bremen commented 7 months ago

@usiems - can you have a look?

usiems commented 7 months ago

Not sure if this might introduce problems down the line if Qt requires a greater C++ version than 11, but I guess we can fix that if problems arise.

iakov commented 7 months ago

There is another problem with Qt6 that requires C++17. Even the generator project fails to compile with GCC 13 if -ansi -pedantic -Werror are in effect. This is caused by Qt6 mkspecs.... Explicit CONFIG+=c++14 does not influence command-line parameters. Only CONFIG+=c++17 helps. As a compromise, the CONFIG+=c++latest can be used to be safe (as compatible with older compilers). But that is another story...