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. [Resolved][How to use PageStack.push(page, properties ..)?

[Resolved][How to use PageStack.push(page, properties ..)?

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 6.8k 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.
  • H Offline
    H Offline
    harlentan
    wrote on last edited by
    #1

    I want to transmit a parameter to the page I push.

    @
    stack.push(Qt.resolvedUrl("main.qml"))
    @

    How to get a parameter in to the page I push?

    It doesn't work in this way:
    @
    stack.push(Qt.resolvedUrl("main.qml"), "hello");
    @

    1 Reply Last reply
    0
    • T Offline
      T Offline
      task_struct
      wrote on last edited by
      #2

      @ stack.push(Qt.resolvedUrl("main.qml"), { property: value }); @

      For more information: http://doc.qt.nokia.com/qt-components-symbian-1.0/qml-pagestack.html#passing-parameters-to-pages

      "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program."

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