5 ms·
I might be misunderstanding something but last I played with it, it seemed like the stock QML controls were extremely barebones and required either rolling your
by jwells89 3y ago
I might be misunderstanding something but last I played with it, it seemed like the stock QML controls were extremely barebones and required either rolling your own or pulling in a library of third party QML controls for pretty basic stuff, which is a bit strange compared to the the range of controls provided by Qt Widgets and a turnoff for anybody looking for something a little more “batteries included”.
- saidinesh5 3y agoOfficially, There were QtQuickControls: https://doc.qt.io/qt-6/qtquickcontrols-index.html https://doc.qt.io/qt-6/qtquickcontrols-index.html . No one i knew really cared for them though. Most of the time, QtQuick was meant to target embedded/mobile world, while QtWidgets - desktop. QtQuickControls 1.0 have been a dumpster fire anyway. So we had to write our own for performance reasons. QtQuickControls 2.0 were a bit of a licensing headache iirc. (Most of the companies i worked for stuck with Qt5.6 for licensing reasons).
- sho_hn 3y agoQt Quick Controls still exist and are supported and actively developed - in the 2.x version range, since 2016.
- saidinesh5 3y agoYeah but they were officially released with Qt 5.7 no? iirc they had a different license too. LGPL v3 was a problem for most of the companies i worked for back then. None of them purchased a commercial Qt license. The situation was so weird that even during 2021, they were just using Qt 5.6. Slowly they started moving away to Electron and other tech. (devs were cheaper/easier to find). The closest thing to QQC 2.0 we had was something called QSkinny. Every Qt < 5.6 project I worked on, we ended up reimplementing the same common widgets. 4-5 times. I lost track of things after that.
- righthand 3y agoI have very little experience with QML but from what I saw was that it was more barebones than widgets and offered little advantage over UIC which I also don’t use for the reasons stated above.
- sho_hn 3y ago> I might be misunderstanding something but last I played with it I'd say this is a fair description of a point in the past, but these days Qt Quick Controls 2 (which is bundled) is fairly well-featured, and they do keep adding new features release-by-release. It's not far from parity with Qt Widgets, and some things it does significantly better (e.g. animation or complex input handling).
- Intralexical 3y agoIDK About bare QML, but for desktop apps QQC2/Kirigami is pretty great. https://develop.kde.org/docs/getting-started/kirigami/ https://develop.kde.org/docs/getting-started/kirigami/ https://doc.qt.io/qt-6/qtquickcontrols-index.html https://doc.qt.io/qt-6/qtquickcontrols-index.html The QML types are pretty extensive, covering most of the Widgets I think: https://doc.qt.io/qt-6/qmltypes.html https://doc.qt.io/qt-6/qmltypes.html For Widgets-consistent styling: https://invent.kde.org/frameworks/qqc2-desktop-style https://invent.kde.org/frameworks/qqc2-desktop-style