Hello,
I would like to draw an ellipse and fill it with a QRadialGradient brush. So I have 2 questions:
- what is the difference between focal and center points in a QRadialGradient?
- here is my code, which draws a classical - empty - ellipse, what should I add to fill it with the selected brush?
Qt Code:
rg.setColorAt(0, Qt::red); rg.setColorAt(1, Qt::white); painter.setPen(pen); painter.drawEllipse(this->fire_point.x(), this->fire_point.y(), this->fire_size*2, this->fire_size*2);To copy to clipboard, switch view to plain text mode
Bookmarks