[Qt-interest] Implementing a QPaintEngine - why pixmaps when there are no pixmaps?
Jeremy Sanders
jeremy at jeremysanders.net
Wed Sep 9 23:23:55 CEST 2009
I'm making my own QPaintEngine, which mostly seems to work quite well (it is
an EMF export paint engine using pyemf).
One difficulty I have is that it the drawPixmap() method gets called even
when I have no pixmaps sent to the QPainter. I think it may be rotated text
which does this.
Is there any way to stop this happening? QPaintEngine.drawTextItem should
convert text to paths, but this doesn't seem to happen when the text is
rotated.
Postscript and PDF paint engines don't seem to use pixmaps for the same
QPainter commands, so presumably there's something I can do to stop this
happening.
Jeremy
--
Jeremy Sanders <jeremy at jeremysanders.net>
More information about the Qt-interest-old
mailing list