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

info at flyingfischer.ch info at flyingfischer.ch
Thu Jun 5 13:19:38 UTC 2014


Thanks, but I am still stuck. This is what I do

PreviousPage.qml
Page {
     id: previous
     property string topic: "default value"
...

Topics.qml
Page {
     id: topics
     property string topic
...
             Button {
                 id: topic0
                 text: qsTr("Topic 0")
                 anchors.horizontalCenter: parent.horizontalCenter
                 onClicked: {
                     // PreviousPage.topic = "Test"; // reference error
                     previous.topic = "Test"; // reference error
                     pageStack.pop();
                 }
             }

Thanks again!

Markus


More information about the Devel mailing list