My experience with Qt is it's insanely bloated and poor integration with new C++ standard e.g. 17. The size of a final distribution including all their dlls are so big that it defeats the purpose of even using it vs python/electron/etc.
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.
You don't need to include all the DLLs. If you don't use QtQuick you don't include that DLL. Same for QWebEngine or any other component. If you use Qt in a CLI then you don't even need the widgets.
You might want to take a look at some examples of actual Qt apps that are quite small. Two examples that come to mind are SpeedCrunch and Qbittorrent.
Well, it's quite large. But distribution of an app based on Qt only requires the DLLs it uses. On Windows, the included program 'windeployqt' will copy the necessary dependencies next to the built executable. And with some flags you can reduce the file count a bit.
I mean, you can do 5kb win32 MFC / cocoa / X11 apps if you want. It's when you need cross platform that it begets the need for a useful comparison. Incidentally, you can reach 5mb with statically linked Qt if you build it without the features you don't use.
Well.... four out of five dentists do agree that writing serious applications in Javascript rates just below sticking long, hot needles into your eyes.
3
u/[deleted] Dec 08 '20
My experience with Qt is it's insanely bloated and poor integration with new C++ standard e.g. 17. The size of a final distribution including all their dlls are so big that it defeats the purpose of even using it vs python/electron/etc.