Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Moxie: Incremental Declarative UI in Rust. Parent comment
e.g.
property int count: 0 Text { text: "counter " + count } Button { onClicked: count++ }
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++ } } }
e.g.
will result in the text changing every time the button is clicked (for a complete code example you can paste in the previous link :