I have implemented a custom backend QPaintEngine for purpose of creating windows meta files from QGraphicsView. Everything is fine so far, but I am encountering the following problem:
I expected QGraphicsPolygonItem objects to be drawn via QPaintEngine::drawPolygon(). But it seems that instead QPaintEngine::drawImage() is being called. This is a problem for me, because I really want to get the drawPolygon commands, so I can properly export to the meta file.
One idea I have is to implement my own version of QGraphicsPolygonItem... but then I'll need to change the graphics view internals. Does anyone know how to force Qt to use the drawPolygon method?
Bookmarks