Qt 6.12 LTS is out! See what's new in the release
blog
QImage in QGraphicsScene is pixelated when zooming in
-
I created a simple custom
QGraphicsScenein which user can zoom in and out by keeping pressedCtrlkey and moving the mouse wheel up and down.
I have to addQImages to myQGraphicsScene. To achieve that, I first convert them toQPixmapwith the functionQPixmap::fromImage().
However those pixmaps are really pixelated if I zoom in. Is there a way to create vectorial images fromQImageand 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