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. Pass a Component into pushed StackView items

Pass a Component into pushed StackView items

Scheduled Pinned Locked Moved QML and Qt Quick
stackviewcomponent
1 Posts 1 Posters 600 Views
  • 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.
  • S Offline
    S Offline
    sk2212
    wrote on last edited by
    #1

    Within a StackView I want to pass an Item (In this case a TabView Component) to pushed StackView Components.

    So, the main question => How to pass a visual item into a QML component and be able to CHANGE this component within all QML components where it is used?

    Something like this is working for non-pushed StackView items:

    Item {
    width: 100
    height: 100
    property var passedComponent
    Item {
    children: passedComponent
    }
    }

    However, changing the "passedComponent" is only changed within same QML Component. Why? Is is not passed via "reference?

    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