50 #include <QLinearGradient>
void setColorAt(qreal pos, const QColor &color)
The QLinearGradient class is used in combination with QBrush to specify a linear gradient brush.
The QPointF class defines a point in the plane using floating point precision.
The QRadialGradient class is used in combination with QBrush to specify a radial gradient brush.