[SailfishDevel] Page Status code

christopher.lamb at thurweb.ch christopher.lamb at thurweb.ch
Thu Feb 13 06:49:24 UTC 2014


Hi CDW

I also use onStatusChanged with no problems.

Is it possible that the event is being called earlier than you expect?  
(e.g. during app startup?)

I would put a console.log in the onStatusChanged handler - outside the if:

onStatusChanged: {
   console.log("Page XXX: onStatusChanged: status: " + status);
   if (status==PageStatus.Activating){
     ...more code here...
    }

}

Run the app, activate the page, then search the application output for  
the text you have in the console.log()

Chris

Zitat von "Chris Walker" <cdw_nokiaqt at the-walker-household.co.uk>:

> In the past (Harmattan code), I would have done this sort of stuff :-
>
> onStatusChanged: {
>         if (status==PageStatus.Activating) {
>
> but there is no 'onStatusChanged' option now. So what do I use now?
>
> I've looked here -
> https://sailfishos.org/sailfish-silica/qml-sailfishsilica-page.html but
> it doesn't mention that status directly.
>
> Any help appreciated.
> _______________________________________________
> SailfishOS.org Devel mailing list
>





More information about the Devel mailing list