代码片段:
QRadialGradient::QRadialGradient(const QPointF ¢er, qreal radius, const QPointF &focalPoint)
Constructs a simple radial gradient with the given center, radius and focalPoint.
Note: If the given focal point is outside the circle defined by the center point and radius, it will be re-adjusted to lie at a point on the circle where it intersects with the line from center to focalPoint.
构造一个具有给定中心,半径和焦点的简单径向渐变。
注意:如果给定的焦点在由中心点和半径定义的圆之外,则将其重新调整为位于圆上与中心到焦点的线相交的点上。