2 ms·
For one thing it has a much better box model than CSS/HTML, layouts are much nicer. It allows you to have a scripted UI in C++ apps, but there is no reason some
by nsm 13y ago
For one thing it has a much better box model than CSS/HTML, layouts are much nicer. It allows you to have a scripted UI in C++ apps, but there is no reason someone couldn't write a codegen to spit out HTML/CSS. There is already one called qmlweb but not sure if its maintained.
It also has bits of reactive programming so that value changes in variables propagate to uses of that variable, making it really easy to have fluid layouts, or to recalculate labels or similar. I like to think of it as a better presentation layer than HTML/CSS. I made a game 2 years ago using QML + JS [1]
[1] https://github.com/nikhilm/solarwolf-qml https://github.com/nikhilm/solarwolf-qml