slint/examples/cpp/platform_native/appwindow.slint
Olivier Goffart a34074db11 Move the C++ specific example to the examples/cpp directory
The platform ones are not experimental so move out of tests
2023-07-31 12:58:38 +02:00

20 lines
465 B
Text

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