szisziszilvi
17th January 2011, 12:57
Hi,
I'm using QPainter for painting rectangles.
This works:
painter->fillRect(myQRect,Qt::red);
But how can I define a gradient filling, like:
painter->fillRect(myQRect,Qt::LinearGradientPattern);
?
I tryed to google it, but no simple examples found. :(
I'm using QPainter for painting rectangles.
This works:
painter->fillRect(myQRect,Qt::red);
But how can I define a gradient filling, like:
painter->fillRect(myQRect,Qt::LinearGradientPattern);
?
I tryed to google it, but no simple examples found. :(