PDA

View Full Version : Recuce boundary space in QGroupBox/QFrame



prashant
5th October 2009, 15:47
http://img528.imageshack.us/img528/2279/panelxj.th.jpg (http://img528.imageshack.us/i/panelxj.jpg/)
How to reduce boundary space (horizontal/vertical) in QGroupBox?

The button are added in a horizontal layout and then layout has been set for GroupBox.


self.horizontalGroupBox.setLayout(layout)


This is also relevant for QFrame. It also takes some extra space as visible in the image.

Lykurg
5th October 2009, 15:53
QLayout::setContentsMargins() and QWidget::setContentsMargins().

And please attach images here at the forum that your post stays consistent.