[SailfishDevel] pageStack.pop() - send paramater to prev page
Andrey Kozhevnikov
coderusinbox at gmail.com
Thu Jun 5 11:50:54 UTC 2014
if you using Dialog you can set dialog.acceptDestinationProperties =
{something: true}
05.06.2014 17:48, info at flyingfischer.ch пишет:
> 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-unsubscribe at lists.sailfishos.org
More information about the Devel
mailing list