Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Zoom in/out based on mouse position.
I have a problem with QGraphicsview framework. It is about Zoom in/out.
When I set the graphics view to
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.
Sounds strange, which version of Qt are you using ? On which platform ?
Qt 5.5 on CentOS 7 x64.
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?