Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to rotate GraphicsView with absolute value
marki last edited by
Sorry about my (bad) English (german :-)
i want to plot geographic waypoints in a GraphicsView, this works.
the view is cyclic re paint every 5 sec.
i have an electronic compass input value (0-359 degrees).
i want to rotate the view with the compass, with the absolute value.
i have only found to rotate +/- relativ, not absolut.
so when the compass value is fix and i use the "relativ" command below, then the view turn by every replot.
is there an absolute command/function for this? or how i can do that?
JonB last edited by
I do not know whether there is a better way, but if you have to can you not maintain how much you have previously rotated by, and then you know what relative amount to rotate by to achieve an absolute rotation?