Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Handling States from another qml file

Handling States from another qml file

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 780 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • 8 Offline
    8 Offline
    888rok
    wrote on last edited by
    #1

    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"?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sf2212
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved