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:
painter->setPen(qclr); painter->setBrush(qclr); 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
Bookmarks