Unable to move scroll bar in scroll area - HELP!
I am trying to use a custom scroll bar in the QScrollArea class by using the setVerticalScrollBar() member function. The custom scroll bar is getting update correctly, but it's clipped off!!! Since the custom scroll bar has a width that is larger than the original scroll bar, it getting clipped and not shown fully. I have tried setting the setViewportMargins(), but that didn't help. I have been searching for two days, but haven't found how to do this.
I want to avoid creating scrollbar that is linked to the scroll area with slots etc.
@ScrollArea::ScrollArea(QWidget *parent, QScrollBar *scrollbar) :
setViewportMargins(50, 50, 50, 50);