mirror of
https://github.com/slint-ui/slint.git
synced 2025-07-23 21:18:23 +00:00
20 lines
500 B
Text
20 lines
500 B
Text
// Copyright © SixtyFPS GmbH <info@slint-ui.com>
|
|
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial
|
|
|
|
import {Button, AboutSlint} from "std-widgets.slint";
|
|
|
|
export component App inherits Window {
|
|
preferred-width: 800px;
|
|
preferred-height: 600px;
|
|
property <int> count;
|
|
|
|
VerticalLayout {
|
|
AboutSlint { }
|
|
Button {
|
|
text: "Hello";
|
|
clicked => { count += 1; }
|
|
}
|
|
Text { text: count; }
|
|
Rectangle { }
|
|
}
|
|
}
|