I try this but It seems don't work.
Qt Code:
QPainter paint; drawScale( &paint ); bm.fill( color0 ); setMask( bm ); }To copy to clipboard, switch view to plain text mode
I try this but It seems don't work.
Qt Code:
QPainter paint; drawScale( &paint ); bm.fill( color0 ); setMask( bm ); }To copy to clipboard, switch view to plain text mode
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