3 ms·
> It's nice to see that the traditional desktop GUI programmers finally realize that the way the Web people do GUIs is right (React/Vue/...) and the way they di
by jcelerier 7y ago
> It's nice to see that the traditional desktop GUI programmers finally realize that the way the Web people do GUIs is right (React/Vue/...) and the way they did it until now (QT/GTK/WPF/...) is wrong.
c'mon, Qt has been doing declarative UI for the last ten years, before React and Vue even existed : https://patrickelectric.work/qmlonline/ https://patrickelectric.work/qmlonline/
- pier25 7y agoIt may be declarative, but is it reactive? Edit: it may not sound that way but I swear I was honestly just asking a question. :)
- jcelerier 7y agoyes ? in an even purer form than most JS frameworks : just using a variable creates a reactive binding. e.g. property int count: 0 Text { text: "counter " + count } Button { onClicked: count++ } will result in the text changing every time the button is clicked (for a complete code example you can paste in the previous link : import QtQuick 2.7 import QtQuick.Controls 2.3 Rectangle { id: root anchors.fill: parent property int count: 0 Column { Text { text: "counter " + count } Button { onClicked: count++ } } }
- pier25 7y agoThanks!