PeterSilie
18th August 2017, 09:14
Hello,
I am using a GridLayout (QT 4.8.7) and on certain actions i hide/show parts inside this layout using .hide()/.show().
The Problem which now occurs is that the spacing of these hidden elements is still shown inside the layout (see picture).
12563
layout = new QGridLayout( this );
layout->setMargin( 1 );
layout->setSpacing( 1 );
setSizePolicy( sizePolicy().horizontalPolicy(), QSizePolicy::Fixed );
Is there a simple way to prevent this behaviour?
I am using a GridLayout (QT 4.8.7) and on certain actions i hide/show parts inside this layout using .hide()/.show().
The Problem which now occurs is that the spacing of these hidden elements is still shown inside the layout (see picture).
12563
layout = new QGridLayout( this );
layout->setMargin( 1 );
layout->setSpacing( 1 );
setSizePolicy( sizePolicy().horizontalPolicy(), QSizePolicy::Fixed );
Is there a simple way to prevent this behaviour?