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

2014-12-01 Thread jensbw
> On 16 Nov 2014, at 14:21, Dmitrii Volosnykh > wrote: > > 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. Hi Dmi

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

2014-11-18 Thread Dmitrii Volosnykh
Thank you for sorting this out. Regards, Dmitrii. 2014-11-18 11:49 GMT+03:00 : > > > On 16 Nov 2014, at 14:21, Dmitrii Volosnykh > wrote: > > > > Is such a behaviour is correct or this should be considered as a bug? > > > > onPaint handler gets triggered on requestPaint() and > markDirty(Qt.rec

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

2014-11-17 Thread Dmitrii Volosnykh
I filed a bug: https://bugreports.qt-project.org/browse/QTBUG-42737 2014-11-16 16:24 GMT+03:00 Dmitrii Volosnykh : > 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 > : >

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

2014-11-16 Thread Dmitrii Volosnykh
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 : > Is such a behaviour is correct or this should be considered as a bug? > > onPaint handler gets triggered on requestPaint() and