85 points · by jandeboevrie · 3y ago · 58 comments
Not a fan of comments that praise product A with some sort of vaguely axe-grinding reference to product B.
With GTK+ you get a Gitlab issue where everyone from GTK+ developers to /g/ users spout their opinions and then eventually the team and the developers take a decision that's probably going against at least half the comments in the thread.
With Qt you get "this is the API, live with it". I'd describe its API design method close(r) to the Windows API than any open source API I know of.
Sure, it creates a lot less drama, but at the cost of openness.
I'm not a fan of any Linux UI design toolkit, but I found GNOME Builder to be much more intuitive and working better out of the box than Qt Creator. GNOME's UI language may be... a choice, but Qt applications often feel like toy UIs or those fake operating systems you find in games without some pretty deliberate planning (and styling). With libadwaita being brought into GTK+ I think neither looks any good out of the box now, but the tooling for GNOME seems a lot better at least.
In terms of API and tooling support, I don't think any open projects come close to what Microsoft did with Visual Studio and C# back in 2005.
This is true often, but not always. Quite a bit of Qt APIs get created collaboratively on gerrit; I've had API changed based on my input. It's also possible to contribute APIs; I've done that, too. Some bigger new modules or API surface area is also moved through Qt Labs first before becoming part of the product, making for a longer feedback period. We've also had Qt folks actively attending events like Akademy to demo new WIP APIs and gather feedback and feature requests and engage in PoC ports of real software. There's also venues like the annual Qt Contributor Summit for larger discussions.
You're right that this open approach is not the only channel for APIs into Qt, and in hybrid communities like his there's always some tension, and of course having to be a little "in the know" or engaged in the community means there's perhaps a higher barrier to entry in some ways. I respect not liking that and preferring if there's only a community-based channel.
It's also worth pointing out that for the most part, Qt has a fairly healthy approach to low/mid/high level customizability and extensibility to its API. It has internalized this as one of the reasons for its success, even if it sadly fell a bit by the wayside during the early Qt Quick years. That means that "this is the API, live with it" is not really a straitjacket - you get to override, supplant, extend a lot.
Yeah, this is the part that hurts. So much work done on the backend and so many great apps, then to lock everything into that...
Bindings aren't ideal, I wish there was a native Linux gui toolkit with a "sane" language.
Qt is C++ through and through. Even more so because of its MOC. It's really hard to port to other languages.
If we wanted a standard toolkit for Linux, it'd have to be written C to be compatible with most FFIs. The problem with Gtk is it's in coalition with Gnome, and its developers shun anything not fitting that scope.
Ho-humm, I'd argue that specific point. The meta-object system adds introspection and reflection, and helps it get e.g. fantastic Python bindings. Various other bindings are also basically built around wrapping QObject+QMetaObject.
Yes, binding Qt is anyway harder than GTK's C API. But not because of the MOC.
One of them is.
> Bindings aren't ideal, I wish there was a native Linux gui toolkit with a "sane" language.
There's none, because all the linux GUI toolkit developers are "sane" enough to make the toolkit x-platform.
If you're looking for "something that runs on linux, and linux only, and nowhere else" you are not going to find anything the way you find "something that runs on windows, and windows only, and nowhere else".
None of them I'd say. I'd argue moc is not C++
I’d argue that Qt API is pre-C++98, ie. pre std template library. Qt uses its own classes (vector, string, etc) instead of std template library. Even the MOC can be eliminated with the STL. Its an ancient API which is separate from modern post C++11. They’ve tried adding some STL and C++11 concepts, but they have millions of lines of legacy code to support, so its just more layers and bloat.
The community around Qt is pretty active at adopting modern C++, e.g. imho https://github.com/danvratil/qcoro is leading work.
I'm glad that folks clamor for keeping things fresh, but every 30 year old project is going to span a few minor revolutions along the way.
Also, alongside VCL/Firemonkey, miles ahead of any C++ UI framework produced by Microsoft, WinDev just has no taste in doing GUI tooling for C++ developers.
Qt is a C++ toolkit, and Qt-based projects are either C++, or use the QML markup language, or both.
Projects that use Qt for the GUI or use other Qt modules often also use other C/C++ libraries (for example, in-house stuff) and they're often hacked on together.
Therefore the free IDE you can get for Qt also happens to be a very good C/C++ IDE/editor.
Qt uses CMake as its native built system - arguably CMake was popularized in general when KDE adopted it, a large FOSS user of Qt. CMake is not Qt-specific, and many other C/C++ libs use or integrate well with CMake. Therefore Qt's free IDE is also very good at general CMake support.
Qt is often used for embedded or heavier IoT projects, therefore the IDE has useful features for deployment and remote debugging that also work for other stuff. And so on.
The Qt Company doesn't really push/advertise Qt Creator much as an independent product, but the utility is really not bad.
/sigh
It was a super-simple algorithm (I'm hardly the scientist, more like a pragmatic developer), but it seemed as if it were doing complex things and Qt helped make it look relatively cool even with my basic coding abilities.
Finally, first time I can contribute a "I remember a couple of decades ago when I was using tool X". I'm a web dev now and I have a more laid back stance regarding new tech, so I never write "Oh, I wrote a SPA-transpiled prototype with RustJs 0.0.4rc" or whatever (been burned too many times; e.g. bower, grunt, gulp, AngularJS 1, etc).