slint/examples/cpp/platform_qt/appwindow.slint
2023-07-31 12:58:38 +02:00

21 lines
488 B
Text

// Copyright © SixtyFPS GmbH <info@slint.dev>
// SPDX-License-Identifier: MIT
import {Button, AboutSlint, LineEdit } 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; }
LineEdit {}
Rectangle { }
}
}