<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Thank you Andrey! That's exactly what I was looking for.<br><br>Best regards,<br>Tobi<br><br><div>> Date: Mon, 20 Jan 2014 13:38:45 +0600<br>> From: coderusinbox@gmail.com<br>> To: devel@lists.sailfishos.org<br>> Subject: Re: [SailfishDevel] How to attach a page to initial page?<br>> <br>> onStatusChanged: {<br>> if (status === PageStatus.Active && pageStack.depth === 1) {<br>> pageStack.pushAttached("SourcesPage.qml", {});<br>> }<br>> }<br>> <br>> On 20.01.2014 13:37, Kalle Vahlman wrote:<br>> > 2014/1/17 Tobi D. <schlaraffenland@hotmail.com>:<br>> >> Hi there,<br>> >><br>> >> How can I push an attached page to my initial page on the pageStack?<br>> >><br>> >> I'd like to have a behavior similar to the Jolla Store app. There you can<br>> >> push to the next page to get categories when you are on initial page.<br>> >><br>> >> I tried several thing to achieve this, but didn't get it work. Doing an<br>> >> "pushAttached" to pageStack in "onComplete" of my initial page ends in error<br>> >> message that you can not push a page on stack while another push is running.<br>> > onComplete is from Component (as opposed from Item), so it doesn't<br>> > indicate the page is "ready".<br>> ><br>> > A better place for pushing would probably be onStatusChanged(), when<br>> > the status changes to Active.<br>> ><br>> <br>> _______________________________________________<br>> SailfishOS.org Devel mailing list<br></div>                                     </div></body>
</html>