Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Handling States from another qml file



  • 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".


Log in to reply