Hello

I am developing a tools to visualize for the image processing result. The problem is that I add a pixmap on the QGraphicsScene and other items on the scene. My user found the position of the items are moving during zooming from this pixel to the neighbour and then back.

My user need to zoom the screen to get exact pixel view of the image.
I use the QGraphicsView->scale(factor, factor) to zoom in and out.
When the factor is 2, there is no problem, but we need the factor as 1.2 or 1.5, then the pixmap will blur like the picture. The line or other items are not at the correct position relative to the pixmap. ( the lines position is correct, the pixmap is not)

qGraphicsView.jpg

I tried the settings about
setRenderHint setOptimizationFlag
none of them works
I cannot setTransformationMode( Qt::SmoothTransformation ), because this is not what we want. we need subpixel level image to be shown correctly.

Please tell me how to set the QGraphicsView to get the correct pixmap.