Can somebody tell me how to move scroll bars for the QScrollArea? I want vertical scroll bar to be attached to the left, not right.
Can somebody tell me how to move scroll bars for the QScrollArea? I want vertical scroll bar to be attached to the left, not right.
This could be a trick, will try now and tell is it works.
Unfortunately, Qt says: "Children added after the call to setLayoutDirection() will not inherit the parent's layout direction." This means we can do nothing with QAbstractScrollArea after instance has been created. Will read source more to understand better.
Did anyone solve this problem?
Reimplement resizeEvent() for the scroll area and position the scrollbars manually. Also use QAbstractScrollArea::setViewportMargins() to set the margin on the left side instead of the right size of the viewport.
Bookmarks