Skip to content Skip to sidebar Skip to footer

Custom Widget In Scrollarea Is Being Squashed!

I have a qscrollarea and within that a qgridlayout. In the grid layout I create a number of custom widgets (for simplicity these widgets are simply a groupbox and a label) and add

Solution 1:

QScrollArea only accepts one widget. No layouts.

Add the layout and widgets into a plain QWidget, and then add that to the QScrollArea with setWidget()

Post a Comment for "Custom Widget In Scrollarea Is Being Squashed!"