← Back to team overview

ubuntu-phone team mailing list archive

Re: [QML] Notify Page when pushed to pagestack

 

Since the page will be created on demand during the page push you can
use 'Component.onCompleted' to execute your code, if you want to
execute it only once.
Or you can 'active' (onActiveChanged) property/signal to monitor when
the page is the last page on the pageStack.




On Tue, Jan 19, 2016 at 3:39 PM, Sam Bull <sam.hacking@xxxxxxxx> wrote:
> Is there a way for a Page component to automatically run some code
> whenever it is pushed onto the pagestack?
> --
> Mailing list: https://launchpad.net/~ubuntu-phone
> Post to     : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~ubuntu-phone
> More help   : https://help.launchpad.net/ListHelp
>


Follow ups

References