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

Dmitrii Volosnykh dmitrii.volosnykh at gmail.com
Tue Nov 18 05:33:16 CET 2014


I filed a bug: https://bugreports.qt-project.org/browse/QTBUG-42737

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

> 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/20141118/79f47878/attachment.html>


More information about the Interest mailing list