3 ms·
> I think QML is used for Qt Quick and not compatible with desktop-style Qt Widgets. yes, but it does not prevent you to make desktop apps with it. See e.g. Ki
by jcelerier 7y ago
> I think QML is used for Qt Quick and not compatible with desktop-style Qt Widgets.
yes, but it does not prevent you to make desktop apps with it. See e.g. Kirigami UI which is based on QtQuick : https://kde.org/products/kirigami/ https://kde.org/products/kirigami/
(and for "large" desktop apps made with QtQuick, look at the Blizzard launcher, or Substance Designer which is as much a desktop app as one can aspire to be : https://cdn.studiodaily.com/wp-content/uploads/2019/05/substance-designer-screenshot.png https://cdn.studiodaily.com/wp-content/uploads/2019/05/subst... )
QML has a fundamental difference with the links you showed : it is able to create bindings according to variables used in expressions / functions / etc.
e.g. if you do
MyWidget {
width: { if(y > 50)
return f(height) + x;
else
return otherItem.height / height;
}
}
then whenever any of the properties used in the expression changes, the width is recomputed.