[SailfishDevel] pageStack.navigate[Forward/Back] not working?

Mikael Hermansson mike at 7b4.se
Wed Jan 1 15:49:07 UTC 2014

In my code I have an attached page I want to jump to when user select it in a menu:

Code that creates the attached page its a timer trigger 50 msec after FirstPage 
has been rendered because it seems Component.onCompleted cant be used to 
attach page:

        running: true
        interval: 50
        repeat: false
        onTriggered: pageStack.pushAttached(/Qt/.resolvedUrl("SelectUrl.qml"));

The attached page is Okey and I can navigate to it via swipe but not via menu using 
navigateBack() (also tried navigateForward() no error message shown but "goto 
url page" is printed...

Pulleymenu code:

            MenuItem {
                text: /qsTr/("Goto...")
                onClicked:  { /console/.log("goto url page"); pageStack.navigateBack() /* 
<= this does not trigger? and no error message? */ }

Is this a known issue in Silica and/or some kind of workaround? 

Skickat från Lenovo Thinkpad X230 running Kubuntu desktop
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20140101/95dbd168/attachment.html>

More information about the Devel mailing list