Quote Originally Posted by wysota View Post
The rect() you get in the paint event can be an arbitrary rectangle from within your widget's coordinates. I don't think you want to paint arbitrary rectangles on your widget...
Sorry but I didn't get you.
So what must I do? Where my code is wrong?