[SOLVED]Vertical Gradient
-
I'm trying to put a gradient( from top to bottom ) to a QGraphicsRectItem but I managed to add it only from left to right:
@QLinearGradient gradient( 0, 0, rectWidth, rectHeight );
gradient.setColorAt( 0.0, "#EBEBEB");
gradient.setColorAt( 1.0, "#A3A3A3");
rectItem->setBrush( gradient );@How to do it right? Thanks!