の作成:は今、私はちょうどグラデーションの塗りの円を作成しようとしていますQGradient
//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*/);
しかし、このすべてが実現してくれ完全に白い円を表示することです。どのように私はこれを修正することができますか?
間の数であるはいああ、私はグラデーションが再設定されると思ったウィジェットに相対的ではなく、各楕円に優先します。ありがとう! – wrongusername