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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -