[SailfishDevel] How to detect when an app are restored from minimized

Andrey Kozhevnikov coderusinbox at gmail.com
Fri Jan 23 23:06:09 UTC 2015


use Qt.application.active property

24.01.2015 04:04, Kim Foder пишет:
> Hi
> In one of my apps I'm using the QML Canvas object, but after the latest
> upgrade of either the OS or SDK, it was blank whenever the app had been
> minimized and restored, and stayed blank until the page had been
> reloaded.
> I believe this is because of the change where the context is freed when
> the app is minimized, so I added a call to var getContext("2d") to my
> onPaint event, and the app can paint on the canvas again.
> But now I need an event to tell me the page should repaint the canvas, I
> have been looking for an onActivate, onShow or onRestore event on the
> Page, but has been unable to find one!
> Does anyone on this list know how to detect when the Page should be
> repainted?
> Kim
> _______________________________________________
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe at lists.sailfishos.org

More information about the Devel mailing list