Prefer QWidget::update to QWidget::repaint
It blocks on rendering, which makes scrolling noticeably slow on systems with high resolution scrolling.
Reviewed by Albert Astals