paintevent() called , without update() or repaint()
-
wrote on 24 Apr 2017, 11:41 last edited by
HI,
My question is, paintevent() will not get called , untill we call update() or repaint(),But paintevent(), is getting called without using update() or repaint(), what am i doing wrong?.
Thanks,
-
HI,
My question is, paintevent() will not get called , untill we call update() or repaint(),But paintevent(), is getting called without using update() or repaint(), what am i doing wrong?.
Thanks,
@Pradeep-Kumar "Paint events are sent to widgets that need to update themselves, for instance when part of a widget is exposed because a covering widget was moved." - http://doc.qt.io/qt-5/qpaintevent.html#details
Paint event are sent even without anybody calling update() or repaint(). -
wrote on 24 Apr 2017, 11:46 last edited by
is their a solution how can it be resolved, or the is it the behaviour, how it should behave?.
Thanks,
-
Hi,
That's the normal behaviour, like written in the documentation @jsulm is quoting and linking to: paint events are sent when needed by the OS or you can intentionally trigger them in your application if needed.
1/4