Define "doesn't work". The mask is certainly invalid...
Define "doesn't work". The mask is certainly invalid...
I suggest you take a look at some working paintEvent() implementation, because yours doesn't make any sense. Look how you created the painter object - you didn't tell it what to paint on.
Bookmarks