Re: [SailfishDevel] A welcome dialog and pageStack's operation in progress.

2014-07-17 Thread Marcin M.
i [ > jpnu...@gmail.com] > Sent: Thursday, July 17, 2014 7:45 AM > To: Sailfish OS Developers > Subject: Re: [SailfishDevel] A welcome dialog and pageStack's operation in > progress. > > On Wed, Jul 16, 2014 at 11:25 PM, Matthew Vogt > wrote: > > > > Hi,

Re: [SailfishDevel] A welcome dialog and pageStack's operation in progress.

2014-07-16 Thread Matthew Vogt
urmi [jpnu...@gmail.com] Sent: Thursday, July 17, 2014 7:45 AM To: Sailfish OS Developers Subject: Re: [SailfishDevel] A welcome dialog and pageStack's operation in progress. On Wed, Jul 16, 2014 at 11:25 PM, Matthew Vogt wrote: > > Hi, 'Page.status' is the correct prop

Re: [SailfishDevel] A welcome dialog and pageStack's operation in progress.

2014-07-16 Thread J-P Nurmi
On Wed, Jul 16, 2014 at 11:25 PM, Matthew Vogt wrote: > > Hi, 'Page.status' is the correct property to watch for avoiding this problem. > > Here is an example of what you could do: > > import QtQuick 2.0 > import Sailfish.Silica 1.0 > > ApplicationWindow { > > initialPage: Component { >

Re: [SailfishDevel] A welcome dialog and pageStack's operation in progress.

2014-07-16 Thread Matthew Vogt
_ From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Andrey Kozhevnikov [coderusin...@gmail.com] Sent: Wednesday, July 16, 2014 7:01 PM To: devel@lists.sailfishos.org Subject: Re: [SailfishDevel] A welcome dialog and pageStack's operation in

Re: [SailfishDevel] A welcome dialog and pageStack's operation in progress.

2014-07-16 Thread Dmitriy Purgin
Sorry Marcin, misread the name :) 2014-07-16 18:55 GMT+06:00 Dmitriy Purgin : > Hi Martin, > > I had the same issue while dealing with a similar problem where start > page was showing BusyIndicator while the application is loading. What > I did is connected to Component.onCompleted in ApplicationW

Re: [SailfishDevel] A welcome dialog and pageStack's operation in progress.

2014-07-16 Thread Dmitriy Purgin
Hi Martin, I had the same issue while dealing with a similar problem where start page was showing BusyIndicator while the application is loading. What I did is connected to Component.onCompleted in ApplicationWindow, start the initialization procedure and replace the page after initialization is d

Re: [SailfishDevel] A welcome dialog and pageStack's operation in progress.

2014-07-16 Thread Andrey Kozhevnikov
In this case you'd better connect to pageStack.busyChanged :) and wait while pageStack.busy 16.07.2014 18:42, Marcin M. ?: This way the dialog opens after closing the dialog. Worked it around by Component.onCompleted: { while (status != PageStatus.Active) {} openWe

Re: [SailfishDevel] A welcome dialog and pageStack's operation in progress.

2014-07-16 Thread Marcin M.
Take back what I said. The workaround doesn't work. :P -- Marcin 2014-07-16 14:42 GMT+02:00 Marcin M. : > This way the dialog opens after closing the dialog. Worked it around by > > > Component.onCompleted: > { > while (status != PageStatus.Active) {} > openWelcomeDialog

Re: [SailfishDevel] A welcome dialog and pageStack's operation in progress.

2014-07-16 Thread Marcin M.
This way the dialog opens after closing the dialog. Worked it around by Component.onCompleted: { while (status != PageStatus.Active) {} openWelcomeDialog() } -- Marcin 2014-07-16 11:01 GMT+02:00 Andrey Kozhevnikov : > do not use onCompleted in this case. use statu

Re: [SailfishDevel] A welcome dialog and pageStack's operation in progress.

2014-07-16 Thread Andrey Kozhevnikov
do not use onCompleted in this case. use status == PageStatus.Active instead 16.07.2014 14:58, Marcin M. ?: I'd like to open a welcome dialog at startup which can be disabled by a user. Page { id: mainPage function openWelcomeDialog() { var component = Qt.createComponen

[SailfishDevel] A welcome dialog and pageStack's operation in progress.

2014-07-16 Thread Marcin M.
I'd like to open a welcome dialog at startup which can be disabled by a user. Page { id: mainPage function openWelcomeDialog() { var component = Qt.createComponent("WelcomeDialog.qml") var popup = component.createObject(mainPage) popup.open() } Componen