PDA

View Full Version : Add space between Qgroupboxes



Mrdata
13th February 2007, 13:00
I've a QVBoxLayout and inside it i've a few Qgroupboxes which are displayed correctly, but
i wanted to increase the space(margin) between each Qgroupbox, as they're now too close. After a look at QT assistant i couldn't find the right function to do that kind of thing, it will be related to QVBoxLayout or to Qgroupbox? any tips about this? thanks.

wysota
13th February 2007, 13:08
Maybe addStretch() will do the job? If not, then maybe you're after setSpacing()?

Mrdata
13th February 2007, 15:13
Maybe addStretch() will do the job? If not, then maybe you're after setSpacing()?

Thanks for the tips, those didn't work for me but a similar one addSpacing() did the job :)