But that activates every time when going to that page. You need a separate global boolean to set if wanted that to be done only one time. We have the same problem on Unofficialtogether app which has the timer solution. https://github.com/mike7b4/unofficialtogether/blob/master/qml/pages/WebView.qml
-Samuli 2014/1/20 Tobi D. <schlaraffenl...@hotmail.com> > Thank you Andrey! That's exactly what I was looking for. > > Best regards, > Tobi > > > Date: Mon, 20 Jan 2014 13:38:45 +0600 > > From: coderusin...@gmail.com > > To: devel@lists.sailfishos.org > > Subject: Re: [SailfishDevel] How to attach a page to initial page? > > > > > onStatusChanged: { > > if (status === PageStatus.Active && pageStack.depth === 1) { > > pageStack.pushAttached("SourcesPage.qml", {}); > > } > > } > > > > On 20.01.2014 13:37, Kalle Vahlman wrote: > > > 2014/1/17 Tobi D. <schlaraffenl...@hotmail.com>: > > >> Hi there, > > >> > > >> How can I push an attached page to my initial page on the pageStack? > > >> > > >> I'd like to have a behavior similar to the Jolla Store app. There you > can > > >> push to the next page to get categories when you are on initial page. > > >> > > >> I tried several thing to achieve this, but didn't get it work. Doing > an > > >> "pushAttached" to pageStack in "onComplete" of my initial page ends > in error > > >> message that you can not push a page on stack while another push is > running. > > > onComplete is from Component (as opposed from Item), so it doesn't > > > indicate the page is "ready". > > > > > > A better place for pushing would probably be onStatusChanged(), when > > > the status changes to Active. > > > > > > > _______________________________________________ > > SailfishOS.org Devel mailing list > > _______________________________________________ > SailfishOS.org Devel mailing list >
_______________________________________________ SailfishOS.org Devel mailing list