trying to convert whole qml file into slint file. (added def h and w)
This commit is contained in:
parent
fd2ae6920d
commit
0c94ced4aa
1 changed files with 7 additions and 0 deletions
|
@ -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}";
|
Loading…
Add table
Reference in a new issue