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)
}
_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org