Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to adjust scroll area as per widgets?
NIXIN last edited by
I am having one 'checkable' group box inside scroll area. when I toggle the groupbox, the items inside it are 'setVisible(false)' thus the groupbox shrinks, but the scroll area does not shrink, it remains the same. I want to reduce the scroll area, when group box is toggled. How should I do it??
have you set QScrollArea's widgetResizeable property set to true?
If not it should be enough to resize the QScrollArea's content widget to it's sizeHint.