Unsolved Zoom in/out based on mouse position.
-
Hello Everyone,
I have a problem with QGraphicsview framework. It is about Zoom in/out.
When I set the graphics view tosetTransformationAnchor(QGraphicsView::AnchorUnderMouse);
It does work correctly when the image is cover all the screen (hight and width close to each other). up to here is OK.
The problem starts when the width is too large. This time, when I try to zoom in/out, the mouse does not stay on same position based on background image until image covers the all the scenerect. Then it stays in the same location.
Any suggestion?
Thank you.
-
Hi,
Sounds strange, which version of Qt are you using ? On which platform ?
-
-
Can you test against a more recent version of Qt ? 5.6 or 5.7 RC ?
-
I recompiled with Qt 5.6 but still have the same problem. I am not able to compile with 5.7 at this moment.
Do you have any ques why it is happening?