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. how to push a url with properties in stackview

how to push a url with properties in stackview

Scheduled Pinned Locked Moved Solved QML and Qt Quick
3 Posts 2 Posters 355 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.
  • hassonH Offline
    hassonH Offline
    hasson
    wrote on last edited by hasson
    #1

    I found this in help:
    **Pushing a single item:

    stackView.push(rect)

    // or with properties:
    stackView.push(rect, {"color": "red"})**

    but how to push a url with properties in stackview? thanks~

    1 Reply Last reply
    0
    • D Offline
      D Offline
      daljit97
      wrote on last edited by
      #2

      This is one way of doing it:

      stackView.push(Qt.resolvedUrl("MyPage.qml"), {"color": "red"})
      
      1 Reply Last reply
      0
      • hassonH Offline
        hassonH Offline
        hasson
        wrote on last edited by
        #3

        @daljit97 said in how to push a url with properties in stackview:

        resolvedUrl

        thanks~

        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