You can reimplemet resizeEvent and repaint in it.