How to paint a widget outside paintEvent()

Printable View