Solved Align two QGraphicView widgets vertically
-
Sounds pretty simple but I am struggling:
I would like to align two QGraphicView widgets vertically. Or in case my description is not using accurate Qt nomenclature: I want to align the y-position of the visible part of two QGraphicsScene widgets.
QGraphicsView number two triggers an event as soon as the vertical scrollbar is shifted. In the function called by the event I would like to align the y position of view one with the shifted view 2.
-
@MS_GX
So isn't this just a question of usinghttps://doc.qt.io/qt-5/qabstractslider.html#value-prop
, or similar scrolling property/function, to scroll one view to match the value of the other? -
@MS_GX
So isn't this just a question of usinghttps://doc.qt.io/qt-5/qabstractslider.html#value-prop
, or similar scrolling property/function, to scroll one view to match the value of the other? -
@JonB Oh, that was easy using your suggestion. Was hunting much more complex solutions :(
Thanks much!!