Help with changing QScrollArea behavior.



  • So I have a custom widget inside of a QScrollArea, I get all of the expected behavior when my widget is bigger than the scroll area (I get scroll bars). The thing is I don't want to resize my widget. I want it to remain the same size and customize the scroll bars to scroll a custom view inside my widget.

    I tried setting the scroll bar properties in my scroll area like: verticalScrollBar()->setPageStep() or verticalScrollBar()->setRange() and all I get is scroll bars that cant be scrolled, it's basically just one big bar that fits the entire range and can't be moved. Which is the exact same thing that happens when the widget and scroll area are the same size. What should I do?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.