Thanks for your reply...can you please also clear that green circle and grey circle both should be Graphics Item ?..beacuse upuntil now i have drawn green circle with the help of QPainterPath and using fill path() as you can see below...so do i have to change the below code ...
void ProgressWidget::paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
QWidget *widget)
{
painter->save();
painter->setPen(QPen(QBrush(Qt::gray,Qt:: solidPattern),30,Qt:: solidLine,Qt::FlatCap,Qt::MiterJoin));
painter->drawEllipse(0, 0, 200, 200);
painter->restore();
painter->fillPath( path, QBrush( Qt::green, Qt:: solidPattern ) );
}