mirror of
https://github.com/allankoechke/slint-cpp-template.git
synced 2026-11-30 10:58:21 +00:00
18 lines
396 B
Plaintext
18 lines
396 B
Plaintext
import { Button, VerticalBox } from "std-widgets.slint";
|
|
|
|
export AppWindow := Window {
|
|
property<int> counter: 42;
|
|
callback request-increase-value();
|
|
VerticalBox {
|
|
Text {
|
|
text: "Counter: \{counter}";
|
|
}
|
|
Button {
|
|
text: "Increase value";
|
|
clicked => {
|
|
request-increase-value();
|
|
}
|
|
}
|
|
}
|
|
}
|