24.01.2015, 01:04, Kim Foder kirjoitti:
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.

I noticed the same, it changed with Uitukka/Qt5.2. Adding an onContextChanged handler worked for me.

Canvas {
    id: canvas
    onContextChanged: {
        if (!canvas.context) return;
        // Initialize context properties here...
        canvas.requestPaint();
    }
}

--
Osmo Salomaa <otsal...@iki.fi>
_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Reply via email to