I dont really understand whta information in your pixmap you want ot convert into a polygon. Is it the boundingRect() or some shape defined by a mask or from colored pixels?
Anyway, have a look at QPainterPath. This can be the link that fits your needs since this is the return type of QGraphicsItem::opaqueArea and can be constructed with polygons or region




Reply With Quote
Bookmarks