by deutschepost · 3y ago · 0 comments
Everyone who is saying that Qt is too expensive -> It's free. Just Use LGPL. All the tools are GPL but that doesn't matter if you don't want to link against those. The Libraries itself are LGPL so you can dynamically link against them with attribution.
Everyone who is saying that they need the Qt Support -> You probably don't. If you live on the bleeding edge you sometimes get cut. Qt for all its flaws really is fine. And if you get stuck the community will help out just as good.
Everyone who is saying that they already bought into it -> Bad news for you. The license terms of the commercial license are very restrictive. If you are building an application which communicates over a network or building a system which consists of multiple programs you have to make sure you don't integrate or communicate with a program which uses the LGPL variant[0]. Yes that's right, if you pay them money you better make sure that you never run your program on KDE because it would inadvertently communicate with software that you are not allowed to communicate with. Of course you are allowed to communicate with everyone while using the LGPL.
ALWAYS use the LGPL variant! Unless you are not able to work within the boundaries of it.
If you have to spend money you are better off donating to the KDE Free Qt Foundation.
[0]https://embeddeduse.com/2023/01/06/using-qt-5-15-and-qt-6-un...
On an unrelated note, as someone who mainly builds desktop tools and has used Qt for many many years, but would like to get away from C++ for UI logic, I can't see any reasonable alternative, but would love for some suggestions.
Qt just makes so many things easy, and basically every use-case is well-explored. Most other options seem to just focus on making easy things easy. As soon as you want to render something in 3D, make a node editor, call into or share data with C++ libraries, implement a reasonable undo/redo system, re-skin the UI to not look like a children's app, etc, other options fall flat.
As for alternatives there really is not much to choose from. For small projects which are not reliant on the performance/native designs of Qt, Dear ImGui looks nice[1]. But it is very much tailored for a different Use Case.
Edit: I said that [0] is a nice website. But you only get a complete view of the situation if you cycle through all of the open source licenses. Too bad there is no "Open Source" option. Would hurt their sales I guess...
i've been thinking about this lately.
objc/nextstep got swift.
c/gobject got vala.
c++/serenity is getting jakt.
these are all higher-level compiled languages whose design is directly informed by the corresponding framework apis.
especially in the olden days, when qt wasn't as much c++ as moc/c++, it would have definitely seemed like there was another language in there. why hasn't it been extracted?
Wow, you seem right. That's incredibly dumb. It almost seems auto-destructive.
If car manufacturers would decide to support upgrading the Qt version by uploading shared objects directly to the car there would be no need for them to buy Qt Licenses. Because technically they could support all points of the LGPL. But that will never happen for two reasons:
1) It is very hard to get out of the contract if you already bought a license. You would have to prove that you aren't using any commercial tools anymore (of course they are the same tools as GPL but installed a different way).
2) They are car manufacturers and known to lock down their systems as much as possible.
The Qt Company probably didn't think about the average C++ Developer or Desktop programs at all while writing these Terms and Conditions...
You even require written permission from Qt to upgrade from LGPL to the Commercial License[0]. Because if you started programming without paying them their fees you probably owe them even more money according to them...
[0] https://www.qt.io/faq/tag/qt-commercial-licensing (If I have started development of a project using the open source version (LGPL), can I later purchase a commercial version of Qt and move my code under that license?)
Have you ever tried to explain the Qt licensing system to the legal department of an automotive, medical, or aerospace manufacturer? I have.
If you can get them to understand it, their faces turn white at the idea of the end customer sideloading new libraries into the device. The conversation pretty much stops there.
That is an excellent link to a well-written article that untangles Qt licensing. Thank you!
I have always found Qt licensing to be almost designed to be as confusing as possible. Unless you deal with Qt on a daily basis it could take weeks to understand what this article lays out clearly in one page. I've always considered the framework to be something "radioactive" to be avoided due to this issue.