QImage in QGraphicsScene is pixelated when zooming in
Unsolved
General and Desktop
-
I created a simple custom
QGraphicsScene
in which user can zoom in and out by keeping pressedCtrl
key and moving the mouse wheel up and down.
I have to addQImage
s to myQGraphicsScene
. To achieve that, I first convert them toQPixmap
with the functionQPixmap::fromImage()
.
However those pixmaps are really pixelated if I zoom in. Is there a way to create vectorial images fromQImage
and render them to the scene? -
hi
As far as I know there is no build in raster to vector conversion.
Also many images are not really good for it.Im wonder if QGraphicsScene is scaling images with best quality.
http://stackoverflow.com/questions/22652491/qt-resize-image-with-best-quality