<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
do not use onCompleted in this case. use status == PageStatus.Active
instead<br>
<br>
<div class="moz-cite-prefix">16.07.2014 14:58, Marcin M. пишет:<br>
</div>
<blockquote
cite="mid:CANaCrSQrfvCZkvxU+ko1y9kN3_hWx=D1Vuzshr+ySKXXTpfWeA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>I'd like to open a welcome dialog at startup which can be
disabled by a user.<br>
<br>
Page<br>
{<br>
</div>
id: mainPage<br>
<div> function openWelcomeDialog()<br>
{<br>
var component =
Qt.createComponent("WelcomeDialog.qml")<br>
var popup = component.createObject(mainPage)<br>
popup.open()<br>
}<br>
<br>
Component.onCompleted: openWelcomeDialog()<br>
// ...<br>
}<br>
<br>
</div>
<div>In fact
<p style="margin:0px;text-indent:0px"><span
style="font-family:'Monospace';font-size:9pt;color:rgb(181,11,11)">[W]
unknown:90 -
<a class="moz-txt-link-freetext" href="file:///usr/lib/qt5/qml/Sailfish/Silica/PageStack.js:90">file:///usr/lib/qt5/qml/Sailfish/Silica/PageStack.js:90</a>:
Error: Cannot push while operation is in progress: push</span></p>
<p
style="margin:0px;text-indent:0px;font-family:'Monospace';font-size:9pt;color:rgb(181,11,11)">
<span style="color:rgb(0,0,0)">happens.</span></p>
<p
style="margin:0px;text-indent:0px;font-family:'Monospace';font-size:9pt;color:rgb(181,11,11)"><br>
<span style="color:rgb(0,0,0)"></span></p>
<p
style="margin:0px;text-indent:0px;font-family:'Monospace';font-size:9pt;color:rgb(181,11,11)"><span
style="color:rgb(0,0,0)">What's done wrong?<br>
</span></p>
</div>
<div>
<div>
<div>
<div>--</div>
Marcin<br>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to <a class="moz-txt-link-abbreviated" href="mailto:devel-unsubscribe@lists.sailfishos.org">devel-unsubscribe@lists.sailfishos.org</a></pre>
</blockquote>
<br>
</body>
</html>