Hi,
I can make that a PainterPath fills with a Gradient.

This is the paintEvent:
Qt Code:
  1. QRectF qBoundingRect(0,0,width(),height());
  2. QPointF qCenter;
  3.  
  4. qCenter.setX(((double)width())/2);
  5. qCenter.setY(((double)height()/2);
  6.  
  7. QRadialGradient qGradientRadial; //I want to Light Green to Dark Green
  8. qGradientRadial1.setCenter(qCenter);
  9. qGradientRadial1.setColorAt(0.0,QColor(0,255,0));
  10. qGradientRadial1.setColorAt(1.0,QColor(0,120,0));
  11.  
  12. QPainterPath qPainterPathBones;
  13. qPainterPathBones.moveTo(qCenter);
  14. qPainterPathBones.arcTo(qBoundingRect,0.0,110); //From 0º to 110º
  15. qPainterPathBones.closeSubpath();
  16.  
  17. QPainter painter(this);
  18.  
  19. painter.setBrush(qGradientRadial1);
  20. painter.drawPath(qPainterPathBones);
To copy to clipboard, switch view to plain text mode 

Thanks,