[SailfishDevel] Retrieve paramater from prev page on next page

info at flyingfischer.ch info at flyingfischer.ch
Thu Jun 5 08:05:22 UTC 2014


Caution, truely a beginners question...

Hello

I am stuck on retrieving information from a previous page in the next 
page. This is what I try to do:

Send a parameter to nextPage by

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

Try to retrieve the parameter on nextPage

Page {
     id: nextPage
     property string topic
...

     SilicaFlickable {
         id: mainFlickable
...
             SectionHeader { text: qsTr(topic) }


The value of topic never arrives in nextPage. Thanks for helping me on 
the right track!

Markus Fischer


More information about the Devel mailing list