paintevent() called , without update() or repaint()
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?.
@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().
is their a solution how can it be resolved, or the is it the behaviour, how it should behave?.
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.