Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Qt itself has a few "graphical frameworks" to do the rendering.

QWidgets is what you're referring to. That's what is used to build traditional desktop applications and is rendered using software by default.

QML/QtQuick is their GPU accelerated scenegraph: https://doc.qt.io/qt-6/qtquick-index.html . It is mostly used in mobile/embedded systems, but they do have desktop components too.



> It is mostly used in mobile/embedded systems, but they do have desktop components too.

This is misleading. QML was supposed to be the successor of QWidgets. Many big apps use it just fine on the desktop. Sadly many Qt dev themselves (just look at the QtCreator code, do you see any commits using QML there?) do not like QML and so it never really replaced QWigets. Now we have a community that is essentially split and every party cries if one gets more updates then the other. QML still has things like TrayIcon support as a unstable labs preview module, after nearly 10 years. Yes I'm a full time Qt/QML developer and I'm salty about this :*)


For a desktop application widgets are better than QML. QML brings things to your UI that a desktop application shouldn't use. QML is the right way to do phone applications, but there are good user interface reasons to not use most of the features QML gives you on desktop applications, but to use those features on phone applications.

Not that you cannot build good desktop applications with QML, but there will be a lot more work for questionable gain.


Please give me a single reason what QWidgets does have that qml doesn't, from a user perspective.

> lot more work

I would argue the opposite. Show me a none buggy QWidgets application that features nested collapsing menus, with animations. That being said, you can still create a modern app with fancy animations in QWidgets. The beautiful Telegram QtWidgets desktop app is the best example, it's just more work....


That you cannot do those animations is a feature! Animations are useful in places, but they also make for hard to use user interfaces. Widgets where designed in a world where user interface experts sat real humans down behind on-way mirrors and watched how they used applications: those experts had long learned fancy animations look great but typically result in it being harder to use user interfaces.


Exactly, whenever I see an animation on my desktop I instantly loose 20% confidence in the app


I don't have a lot of experience with Qt but recently was exploring both QtWidgets and QtQuick as options for simple desktop UI.

QtWidgets made creating forms massively easier thanks to QFormLayout and drag and drop designer.

There was nothing similar in QtQuick - Grid and Qt Design Studio were absolutely horrible for this.


The point of QWidgets is not to create a "modern app with fancy animations", that's what QML is better suited for. It can still be done, QWidgets supports theming and all that, but that's not what it does best.

QWidgets is for making well integrated, "boring" desktop apps. For nested menus, or any menu for that matter, use QMenu. If your OS is fully supported by Qt and the standard system behavior is to animate the menu, it will be animated in your app.


I will say that the KDE system settings application uses QML for its sidebar and it behaves terribly when resizing the window (takes around a second to resolve the layout after resizing). I haven't seen the same behavior with QWidgets programs.


> Please give me a single reason what QWidgets does have that qml doesn't, from a user perspective.

QWidgets gives you widgets that look like they're desktop widgets, QML gives you a white rectangle.



That looks worse than widgets.


Why do you NEED animations though? That has never been an important feature for users.


"modern app with fancy animations" is not a good desktop app, is the point. You're assuming a requirement of things that people simply don't want.

>Sadly many Qt dev themselves...do not like QML and so it never really replaced QWigets

Says it all, doesn't it. I'm sure everyone's wrong and it's the un-liked framework that's correct, yes?


Does QML even have any system theme support? AFAIK its more of a replacement of web technologies than of QtWidgets.


Yes, nowadays QtQuick, the GUI library that is generally associated with the QML programming language, supports native styles: https://doc.qt.io/qt-6/qtquickcontrols-styles.html


Lacks a Microsoft Fluid style for Windows 11.


It's in the roadmap afaik, they talked about it during QtWS


Doesn't look like it supports either QtWidget styles or GTK styles, which are the platform styles on Linux.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: