I want to draw a real time scan radar image on widget with background terrian data, so I want to clean previous data to no color with transparent to show background correctly , I try to use codes as following
Qt Code:
  1. QColor qclr=QColor(Qt::tansparent);
  2. painter->setPen(qclr);
  3. painter->setBrush(qclr);
  4. painter->drawConvexPolygon(pg);
To copy to clipboard, switch view to plain text mode 

but it does not works, previous data are not cleared. if I replace color with Qt::gray ,it works but I can not see the background .

I have read the post http://www.qtcentre.org/threads/3310...nsparent-color , it seem that there was no solution at that time ,how about now ?

thanks