by zerr · 10y ago · 0 comments
Granted, I wish I didn't have to use JS with it, but QML itself is fantastic.
I personally much prefer QtQuick to QtWidgets, and really like the QML declarative language as a better HTML/CSS for non-web. But I completely agree with you that I would prefer if I could code all my logic in C++ and not JS.
I've been meaning to play around with two ideas:
1. Construct the QtQick widget scenegraph wholly from C++ (and not using QML/JS at all). Doable, but definitely not intended usecase.
2. Construct the scenegraph using QML, but using it only for setting values (and never any logic) and then manually connecting the signals from the QML-created widgets to C++ slots.
They're easy to use, themeable and hardware accelerated.