Qt 6.12 LTS is out! See what's new in the release
blog
Handling States from another qml file
QML and Qt Quick
2
Posts
2
Posters
957
Views
1
Watching
-
HI guys & girls,
How do I save a state of a Checkbox item so that it is accessible from another qml file.
Example:
"submenu.qml" has a CheckBox item.
how to get CheckBox properties from "submentu.qml" in another qml file lets say "menu.qml"? -
You can use a signal which sends the properties to your "menu.qml". Just define a signal in "menu.qml" and execute this signal in "submenu.qml".
In "menu.qml" you can define an "onYouSignal" function where you can do anything with send values from "submenu.qml".