1786018092

This commit is contained in:
2026-08-06 14:08:12 +02:00
parent 6607d8dea4
commit 275be7f3f8
2 changed files with 15 additions and 8 deletions

View File

@@ -1,16 +1,17 @@
import { AboutSlint, Button, VerticalBox } from "std-widgets.slint";
import { Button, VerticalBox } from "std-widgets.slint";
export component AppWindow inherits Window {
in-out property<int> counter: 42;
callback request-increase-value();
VerticalBox {
alignment: start;
Text {
text: "Hello World!";
font-size: 24px;
horizontal-alignment: center;
text: "Counter: \{root.counter}";
}
AboutSlint {
preferred-height: 150px;
Button {
text: "Increase value";
clicked => {
root.request-increase-value();
}
}
HorizontalLayout { alignment: center; Button { text: "OK!"; } }
}
}