今、私はグラデーション塗りつぶしで円を作成しようとしています:
//I want the center to be at 10, 10 in the circle and the radius to be 50 pixels
QRadialGradient radial(QPointF(10, 10), 50);
radial.setColorAt(0, Qt::black); //I want the center to be black
radial.setColorAt(1, Qt::white); //I want the sides to be white
painter.setBrush(QBrush(radial));
painter.drawEllipse(/*stuff*/);
しかし、これで達成できるのは、完全に白い円を表示することだけです。どうすればこれを修正できますか?