title: How can I make paintEvent triggered only when update is called?
body: <p>It is known that <code>QWidget::paintEvent</code> is triggered automatically the moment widget becomes visible or any event from the basic window happens. What should I do if I only want the <code>paintEvent</code> to be issued in response to <code>update()</code>?</p>