[Interest] QML. onPaint is called when Canvas is invisible

Dmitrii Volosnykh dmitrii.volosnykh at gmail.com
Sun Nov 16 14:24:30 CET 2014


By the way, it is unclear when canvas gets repainted on requestPaint():
some time when it becomes visible or immediately?

2014-11-16 16:21 GMT+03:00 Dmitrii Volosnykh <dmitrii.volosnykh at gmail.com>:

> Is such a behaviour is correct or this should be considered as a bug?
>
> onPaint handler gets triggered on requestPaint() and markDirty(Qt.rect(0,
> 0, width, height)).
>
> "if (!visible) return" guard works as a workaround.
>
> Regards,
> Dmitrii.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20141116/5a0133e6/attachment.html>


More information about the Interest mailing list