slint/examples/cpp/platform_native/app-window.slint

23 lines
468 B
Text

// Copyright © SixtyFPS GmbH <info@slint.dev>
// SPDX-License-Identifier: MIT
import {Button, AboutSlint} from "std-widgets.slint";
export component AppWindow inherits Window {
property <int> count;
preferred-width: 600px;
preferred-height: 300px;
VerticalLayout {
AboutSlint { }
Button {
clicked => { count += 1; }
text: "Press me";
}
Text { text: count; }
Rectangle { }
}
}