slint-ui / slint

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

Resizing a window #4171

Closed Pilyushkin closed 11 months ago

Pilyushkin commented 11 months ago

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

ogoffart commented 11 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