Thanks Marcel, I was able to achieve what I wanted using your suggestion.
The two widgets do scroll in one direction each, so in their paintEvents I get the GraphicsView's scrollbar positions and paint the widgets based on this position.
It feels a bit hackish, as the widget has to selectively paint itself based on the scrollbar position; I would rather it didn't have to worry about that, i.e. it just paints itself, and some item "viewing" it decides which portions of it to show. I may try making those two widgets in the margins inherit from AbstractScrollAreas at some point, but it works fine for now![]()




Reply With Quote

Bookmarks