[Qt-interest] How to remove the space around the edge of widget when using QGridLayout?

Kai Koehne kai.koehne at nokia.com
Mon Jun 8 08:47:13 CEST 2009


ext Kermit Mei wrote:
 > Hello,community!
 >
 > I use QGridLayout to show some widgets in mywidget which inherited from
 > QWidget. And the other widgets are not mywidget's children.
 >
 > I use QGridLayout in mywidget to show the others. But, there's always
 > some space around the edge of mywidget. I hope there's no space, between
 > the different widgets showed on mywidget, and also no space around the
 > edge of mywidget.

Have a look at the spacing property:
http://doc.trolltech.com/4.5/qlayout.html#spacing-prop

Regards

Kai

PS: RTFM :)



More information about the Qt-interest-old mailing list