Hello Slint

This commit is contained in:
2025-01-22 18:41:40 +00:00
parent 89c81798b4
commit 9549d011b8
4 changed files with 48 additions and 3 deletions

View File

@@ -0,0 +1,19 @@
import { Button, VerticalBox } from "std-widgets.slint";
export component AppWindow inherits Window {
in-out property <int> counter: 42;
callback request-increase-value();
VerticalBox {
Text {
text: "Counter: \{root.counter}";
}
Button {
checked: false;
text: "Increase value";
clicked => {
root.request-increase-value();
}
}
}
}