I am trying to paint some "locked" content around a scroll area that
will remain static while the user navigates within the scroll area.
It appears that I should use QAbstractScrollArea::setViewportMargins
to reserve space around the scroll area for this purpose. According
to the docs, "The marginal space is is left blank; put widgets in the
unused area." However I have been unable to get anything into the
margins, they always appear blank. I tried subclassing
QAbstractScrollArea and overriding the paintEvent() function, but this
only allows me to paint into the scrolling area, not the margins.
Does anyone have insight into or an example of how to layout widgets
in the margin or the proper way to override the paint event?
Thanks,