2 ms·
> How is QML different from XAML? QML is a declarative & reactive programming language, while XAML (and FXML mentioned earlier) are only for markup. You can't
by jcelerier 9y ago
> How is QML different from XAML?
QML is a declarative & reactive programming language, while XAML (and FXML mentioned earlier) are only for markup.
You can't do this in pure XAML:
Item {
x: 5
y: x + 2
Timer {
onTriggered: x = x+1;
interval: 50
}
}
Here, every 50 milliseconds, x would be updated, and y would be updated automatically accordingly to the new value of x.