[SailfishDevel] pageStack.pop() - send paramater to prev page

info at flyingfischer.ch info at flyingfischer.ch
Thu Jun 5 11:48:21 UTC 2014


Beginners follow up question

Hello

while transfering parameters works fine with

pageStack.push(Qt.resolvedUrl("nextPage.qml", {topic: "myTopic"}))

there seems not to be any method like this in

pageStack.pop()

How can I give back a parameter from the top of the stack to the 
previous page?

Thanks for you inputs and patience!

Markus Fischer

------------------------------------------

I tried:

Page {
     id: onTopOfStack
     property string topic
...
         Column {
             id: column
...
             Button {
                 id: myTopic
                 text: qsTr("MyTopic")
                 anchors.horizontalCenter: parent.horizontalCenter
                 onClicked: {
                     topic: "MyTopic"
                     pageStack.pop();
                 }
             }
------------------------------------------

Page {
     id: previousPage
     property string topic
...
     SilicaFlickable {
         id: mainFlickable
...
         Column {
             id: mainColumn
...
             PageHeader {
                 id: header
                 title: qsTr(topic)
             }



More information about the Devel mailing list