PDA

View Full Version : Needed, another RenderHint for QPainter



grabalon
29th July 2010, 23:42
Hey All,

I have a QGraphicsView holding a QGraphicsScene containing several sub-classed QGraphicsItems. I need to change the way it is rendered (similar to Smoothing which is handled by the QPainter natively) and have the algorithm for what needs to happen, given a source image, at any zoom level. Because my algorithm is zoom-dependent, I cannot just change the source image, but need to change the way it is rendered. Any hints as to where the actual rendering happens, what I could sub-class to take advantage of it, or general insights into the Graphics Framework would be appreciated.

Thanks

GreenScape
30th July 2010, 01:32
QGraphicsScene containing several sub-classed QGraphicsItems

inside each QGraphicsItem subclassed's paint(...); methods.

you do not need change image size, just give desired rect size for this (http://doc.qt.nokia.com/4.6/qpainter.html#drawPixmap) QPaineter's method which draws image;