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