1// Copyright © SixtyFPS GmbH <info@slint.dev>
2// SPDX-License-Identifier: MIT
3
4import {Button, AboutSlint} from "std-widgets.slint";
5
6export component AppWindow inherits Window {
7 property <int> count;
8
9 preferred-width: 600px;
10 preferred-height: 300px;
11
12 VerticalLayout {
13 AboutSlint { }
14
15 Button {
16 clicked => { count += 1; }
17 text: "Press me";
18 }
19
20 Text { text: count; }
21 Rectangle { }
22 }
23}
24