You are not using QScrollArea correctly. You need to follow 1 of two paths
1. Use QScrollArea, you will want to subclass the widget that the QScrollArea is showing, and implement the paintEvent and sizeHint(), the scrollbars will be shown depending on the size of the widget.
2. Use QAbstractScrollArea, with this one, you will want to paint inside the QAbstractScrollArea's paintEvent(with a painter opened on the viewport), you will be responsible for setting the scrollbar page step, range, and value.
Matt
Bookmarks