Re: [SailfishDevel] How to attach a page to initial page?
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
Re: [SailfishDevel] How to attach a page to initial page?
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
[SailfishDevel] How to attach a page to initial page?
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. There is another idea I've not tried yet. Maybe it is possible to use a Timer with a few milliseconds which does the pushAttached to the pageStack and disables itself after that. But this solution sounds quite bad to me. Thanks for help! Best regards, Tobi ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] How to attach a page to initial page?
Hi, On 17.01.2014 17:56, Tobi D. wrote: 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. There is another idea I've not tried yet. Maybe it is possible to use a Timer with a few milliseconds which does the pushAttached to the pageStack and disables itself after that. But this solution sounds quite bad to me. If I understood you right, then pycage has that in his Tidings application, from the entry/main page you can access the settings with a swipe R-L, I don't know which magic he uses, but check out the sources here: https://github.com/pycage/tidings br Reto Thanks for help! Best regards, Tobi ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] How to attach a page to initial page?
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. -- Kalle Vahlman, Movial Creative Technologies Inc. Porkkalankatu 20, FI-00180 Helsinki Tel +358 9 8567 6400 Fax +358 9 8567 6401 www.movial.com ___ SailfishOS.org Devel mailing list