Which have I to set to have a right rect() into paintevent of custom widget ?

Printable View