slint-ui / slint

Slint is a declarative GUI toolkit to build native user interfaces for Rust, C++, or JavaScript apps.
https://slint.dev
Other
16.94k stars 568 forks source link

Resizing a window #4171

Closed Pilyushkin closed 9 months ago

Pilyushkin commented 9 months ago

Hello. How to subscribe to a window change event in code?

ogoffart commented 9 months ago

You can use bindings to the width and height properties.

But there is currently no way to get change event. This is issue https://github.com/slint-ui/slint/issues/112 Not yet implemented but https://github.com/slint-ui/slint/issues/112#issuecomment-1065866865 has an ugly workaround.

Closing as duplicated of #112