c++ - Resizing group box after hiding elements? -
in project, have group box few elements may need hidden, other elements above , below. if hide elements sethidden(true), elements hidden leaves large space in between other elements.
how able compact group box after hiding elements, there isn't such big space?
the reason not in invalidate(). it's because have improper layout on groupbox content. if hide() or show() qwidget qt automatically invalidates top-most parent can affected visibility change. in case qgroupbox missing layout, hide element there nothing change in regards of qgroupbox geometry, that's why don't see expected stretching.
Comments
Post a Comment