trying to convert whole qml file into slint file. (added def h and w)

This commit is contained in:
0xshervin 2024-03-30 13:42:54 +03:30
parent fd2ae6920d
commit 0c94ced4aa

View file

@ -3,6 +3,13 @@ import { Button, VerticalBox } from "std-widgets.slint";
export component AppWindow inherits Window {
in-out property<int> counter: 42;
callback request-increase-value();
in property <float> default-width: 900;
in property<float> defualt-height: 500;
// window().set_fullscreen();
// width: (self.fullScreen - self.width) / 2; // Center the window horizontally
// height: (self.fullScreen - self.height) / 2; // Center the window vertically
VerticalBox {
Text {
text: "Counter: \{root.counter}";