QGraphicsView 90 degree Rotation
-
@keksi-venksi Please try the code above that I just posted. If I understood you right, then it should meet your requirements :)
@Wieland
@WielandThanks for your reply
I am using fitInView in many places in my project to work stable . So I would like to get some suggestions for fitInView() coordinates
-
@Wieland
@WielandThanks for your reply
I am using fitInView in many places in my project to work stable . So I would like to get some suggestions for fitInView() coordinates
@keksi-venksi said in QGraphicsView 90 degree Rotation:
I am using fitInView in many places in my project to work stable . So I would like to get some suggestions for fitInView() coordinates
This is probably my last posting here because I think I can't help you. Have you seen my code above? The
fit()
function? It does just what you want, look: -
Hi
Thanks for your reply
In this example in fit method you are trying it to fit the view in the frame when we click a button but my case i have used fitInView() while zooming .So it should adjust the view with the zooming delta
So when ever we zoom fitInView() should be adjusted accordingly to the scene and update the scene as well
-
Hi
Thanks for your reply
In this example in fit method you are trying it to fit the view in the frame when we click a button but my case i have used fitInView() while zooming .So it should adjust the view with the zooming delta
So when ever we zoom fitInView() should be adjusted accordingly to the scene and update the scene as well
To All The issue has been fixed
what i did was simple
X mode fitinview(0,0,calcValue,viewRectHeight)
Y Mode fitinview(0,0,viewRectWidth,calcValue) ; rotate(90)
After calling fitinview again im calling rotate of 90 degree
-
@keksi-venksi
Could you please mark this topic as solved then. Others will find it easier if they have similar questions.