|
|
|
|
|
by samiv
544 days ago
|
|
The one thing I have to wonder is: How many people really want to spend time programming their UIs?
I use Qt myself and one of the best things about the framework and toolkit is the UI tooling that allows me to drag and drop and visually create my UIs in the UI Designer app.I find that for any non-trivial application this type of boilerplate is best done with good tooling that just works and lets the UI to be knocked up fast and efficiently. I also wrote an UI system for my game engine but it's completely drag & drop in the editor. Styling (skinning) is also via UI builder. Source: https://github.com/ensisoft/detonator/tree/master/uikit Live demo: https://ensisoft.com/demos/ui/game.html Question, how do you handle arbitrary clipping masks ? In my solution clipping masks require evaluating all the widget parent's clipping rects and writing them to stencil buffer before rendering the current widget. This is unfortunately quite slow... |
|
But then it's not trivial to write responsive/adaptive applications. In contrast, QML makes it extremely easy to build such apps.
I used to build UIs in the designer as well[1] but after studying QML there's no going back. Here's a new project I program solely in QML (and C++ for the logic)[2].
[1] https://github.com/nuttyartist/notes
[2] https://www.get-vox.com/