1837 if (!gradientRect.
isNull()) {
const QGradient * gradient() const
Returns the gradient describing this brush.
void setTransform(const QTransform &)
Sets matrix as an explicit transformation matrix on the current brush.
qreal left() const
Returns the x-coordinate of the rectangle's left edge.
void restore()
Restores the current painter state (pops a saved state off the stack).
QPointF topLeft() const
Returns the position of the rectangle's top-left corner.
void setBrushOrigin(int x, int y)
Sets the brush's origin to point (x, y).
void save()
Saves the current painter state (pushes the state onto a stack).
qreal height() const
Returns the height of the rectangle.
qreal width() const
Returns the width of the rectangle.
Qt::BrushStyle style() const
Returns the brush style.
The QGradient class is used in combination with QBrush to specify gradient fills. ...
qreal top() const
Returns the y-coordinate of the rectangle's top edge.
bool isNull() const
Returns true if the rectangle is a null rectangle, otherwise returns false.
void fillRect(const QRectF &, const QBrush &)
Fills the given rectangle with the brush specified.