Did you see the release notes? Two of their big focuses with Qt 6 is better use of C++ 17 (it's one of the first things they list so must have been a major priority for them):
With Qt 6 we now require a C++17 compatible compiler enabling the use more modern C++ language constructs when developing Qt and also allows for integration points on the API side.
and having smaller packages:
Qt 6 also comes with a much smaller default package, and many of the add-ons are now distributed as separate packages through a package manager. This gives us more flexibility in adapting release schedules of add-ons to market requirements, allowing, for example, for more frequent feature releases as the core Qt packages or making them available for multiple Qt versions at the same time. In addition, we can use the package manager as a delivery channel for 3rd party content. And finally, it gives our users more flexibility as they can choose to download only what they really need.
I haven't tried Qt 6 but hope to see how much the package size has been reduced by.
C++20 is not completed yet in any major compiler as of this writing. GCC and MSVC are quite well on their way, but modules and the One Ranges Proposal remain big pain points for most compilers. So C++17 is the most recent standard anyone can use.
Add to that that Qt6 has been under development for a number of years, too.
I mean, you're technically right. No major compiler has even implemented C++11 fully. That doesn't mean it's dangerous to use.
However the details that are not implemented for C++17 (GCC is missing just the Hardware Interference Size for example) are not likely to be of any use to Qt anyway, and those features are not likely to be implemented soon either. C++20 still being in quite some flux with your compiler makes it a lot more scary to use.
Let's not forget that work on Qt6 was started almost two years ago. Choosing C++20 then would've been madness.
31
u/joggle1 Dec 08 '20
Did you see the release notes? Two of their big focuses with Qt 6 is better use of C++ 17 (it's one of the first things they list so must have been a major priority for them):
and having smaller packages:
I haven't tried Qt 6 but hope to see how much the package size has been reduced by.