Too much space between rows in QGroupbox
I have got a simple QGroupbox with two rows and one column into a QGridboxlayout. As you can see it in the link below, there is too much space between the rows.
I don't know how to solve it. I already did couple of settings:
I thought if i set VerticalSpacing to 1 its working but there is still to much space. Did I forget something?
@Joe-Macaroni I don't understand very well. How do you set rows and columns in a QGroupBox?
Oh sry, I did it like this:
box = new QGroupBox(this); boxLayout = new QGridLayout(this); box->setLayout(boxLayout); boxLayout->addWidget(label1,0,0); boxLayout->addWidget(label2,1,0);
Hi and welcome to devnet,
Why not use a QVBoxLayout with a stretch at the last position ?
Because in some case I need more than one column. Sry what do you mean with "with a stretch at the last position" ?
I mean't: call the addStretch method form QXXXLayout