<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Working for me on device. It can be emulator bug only.<br>
<br>
<div class="moz-cite-prefix">On 01.01.2014 21:49, Mikael Hermansson
wrote:<br>
</div>
<blockquote cite="mid:47913352.0ny1qY3jpb@thinkpad-x230" type="cite">
<meta name="qrichtext" content="1">
<style type="text/css">
p, li { white-space: pre-wrap; }
</style>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;
-qt-user-state:0;">In my code I have an attached page I want to
jump to when user select it in a menu:</p>
<p style="-qt-paragraph-type:empty; margin-top:0px;
margin-bottom:0px; margin-left:0px; margin-right:0px;
-qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;
-qt-user-state:0;">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:</p>
<p style="-qt-paragraph-type:empty; margin-top:0px;
margin-bottom:0px; margin-left:0px; margin-right:0px;
-qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;
-qt-user-state:0;"><span style=" color:#c0c0c0;"> </span><span
style=" color:#800080;">Timer</span>{</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;
-qt-user-state:0;"><span style=" font-family:'Courier
New,courier'; color:#c0c0c0;"> </span><span style="
font-family:'Courier New,courier'; color:#800000;">id</span><span
style=" font-family:'Courier New,courier';">:</span><span
style=" font-family:'Courier New,courier'; font-style:italic;
color:#000000;">timer1</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;
-qt-user-state:0;"><span style=" font-family:'Courier
New,courier'; color:#c0c0c0;"> </span><span style="
font-family:'Courier New,courier'; color:#800000;">running</span><span
style=" font-family:'Courier New,courier';">:</span><span
style=" font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span
style=" font-family:'Courier New,courier';">true</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;
-qt-user-state:0;"><span style=" font-family:'Courier
New,courier'; color:#c0c0c0;"> </span><span style="
font-family:'Courier New,courier'; color:#800000;">interval</span><span
style=" font-family:'Courier New,courier';">:</span><span
style=" font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span
style=" font-family:'Courier New,courier';">50</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;
-qt-user-state:0;"><span style=" font-family:'Courier
New,courier'; color:#c0c0c0;"> </span><span style="
font-family:'Courier New,courier'; color:#800000;">repeat</span><span
style=" font-family:'Courier New,courier';">:</span><span
style=" font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span
style=" font-family:'Courier New,courier';">false</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;
-qt-user-state:0;"><span style=" font-family:'Courier
New,courier'; color:#c0c0c0;"> </span><span style="
font-family:'Courier New,courier'; color:#800000;">onTriggered</span><span
style=" font-family:'Courier New,courier';">:</span><span
style=" font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span
style=" font-family:'Courier New,courier';">pageStack.pushAttached(</span><span
style=" font-family:'Courier New,courier'; font-style:italic;
color:#0055af;">Qt</span><span style=" font-family:'Courier
New,courier';">.resolvedUrl(</span><span style="
font-family:'Courier New,courier'; color:#008000;">"SelectUrl.qml"</span><span
style=" font-family:'Courier New,courier';">));</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;
-qt-user-state:0;"><span style=" font-family:'Courier
New,courier'; color:#c0c0c0;"> </span><span style="
font-family:'Courier New,courier';">}</span></p>
<p style="-qt-paragraph-type:empty; margin-top:0px;
margin-bottom:0px; margin-left:0px; margin-right:0px;
-qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;
-qt-user-state:0;"><span style=" font-family:'Courier
New,courier';">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...</span></p>
<p style="-qt-paragraph-type:empty; margin-top:0px;
margin-bottom:0px; margin-left:0px; margin-right:0px;
-qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;
-qt-user-state:0;"><span style=" font-family:'Courier
New,courier';">Pulleymenu code:</span></p>
<p style="-qt-paragraph-type:empty; margin-top:0px;
margin-bottom:0px; margin-left:0px; margin-right:0px;
-qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;
-qt-user-state:0;"><span style=" color:#c0c0c0;"> </span><span
style=" color:#800080;">MenuItem</span><span style="
color:#c0c0c0;"> </span>{</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;
-qt-user-state:0;"><span style=" font-family:'Courier
New,courier'; color:#c0c0c0;"> </span><span style="
font-family:'Courier New,courier'; color:#800000;">text</span><span
style=" font-family:'Courier New,courier';">:</span><span
style=" font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span
style=" font-family:'Courier New,courier'; font-style:italic;
color:#0055af;">qsTr</span><span style=" font-family:'Courier
New,courier';">(</span><span style=" font-family:'Courier
New,courier'; color:#008000;">"Goto..."</span><span style="
font-family:'Courier New,courier';">)</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;
-qt-user-state:0;"><span style=" font-family:'Courier
New,courier'; color:#c0c0c0;"> </span><span style="
font-family:'Courier New,courier'; color:#800000;">onClicked</span><span
style=" font-family:'Courier New,courier';">:</span><span
style=" font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span
style=" font-family:'Courier New,courier';">{</span><span
style=" font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span
style=" font-family:'Courier New,courier'; font-style:italic;
color:#0055af;">console</span><span style="
font-family:'Courier New,courier';">.log(</span><span style="
font-family:'Courier New,courier'; color:#008000;">"goto</span><span
style=" font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span
style=" font-family:'Courier New,courier'; color:#008000;">url</span><span
style=" font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span
style=" font-family:'Courier New,courier'; color:#008000;">page"</span><span
style=" font-family:'Courier New,courier';">);</span><span
style=" font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span
style=" font-family:'Courier New,courier';">pageStack.navigateBack()
/* <= this does not trigger? and no error message? */</span><span
style=" font-family:'Courier New,courier'; color:#c0c0c0;"> </span><span
style=" font-family:'Courier New,courier';">}</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;
-qt-user-state:0;"><span style=" font-family:'Courier
New,courier'; color:#c0c0c0;"> </span><span style="
font-family:'Courier New,courier';">}</span></p>
<p style="-qt-paragraph-type:empty; margin-top:0px;
margin-bottom:0px; margin-left:0px; margin-right:0px;
-qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;
-qt-user-state:0;"><span style=" font-family:'Courier
New,courier';">Is this a known issue in Silica and/or some
kind of workaround? </span></p>
<p style="-qt-paragraph-type:empty; margin-top:0px;
margin-bottom:0px; margin-left:0px; margin-right:0px;
-qt-block-indent:0; text-indent:0px; "> </p>
<p style="-qt-paragraph-type:empty; margin-top:0px;
margin-bottom:0px; margin-left:0px; margin-right:0px;
-qt-block-indent:0; text-indent:0px; "> </p>
<p style="-qt-paragraph-type:empty; margin-top:0px;
margin-bottom:0px; margin-left:0px; margin-right:0px;
-qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;
-qt-user-state:0;">-- </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;
-qt-user-state:0;">Skickat från Lenovo Thinkpad X230 running
Kubuntu desktop</p>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SailfishOS.org Devel mailing list</pre>
</blockquote>
<br>
</body>
</html>