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.93k stars 566 forks source link

Add a method like setCentralWidget() in The Qt Widget QMainWindow to Window in order to allow loading a page in another or update the UI easily. #1705

Closed Aquiles-o-rei closed 1 year ago

ogoffart commented 1 year ago

Do you have some context on what exactly you are trying to do.

Are you talking about some pagination like discussed in https://github.com/slint-ui/slint/discussions/328 ?

Aquiles-o-rei commented 1 year ago

yes , suppose i have a DockWidget containing several button, and i want to load a central widget depending on the button i clicked .

ogoffart commented 1 year ago

I have created https://github.com/slint-ui/slint/issues/1722 and https://github.com/slint-ui/slint/issues/1723 to track the page and dockwidget issues.