PDA

View Full Version : Reduce blank spaces between widgets in QSplitter layout



henryjoye
13th October 2010, 05:19
I use QSplitter to layout widgets. It seems that blank space between neighboring widgets is a litter bigger. How to set QSplitter or other related parameters to reduce this blank spacing? Thank you very much!

henryjoye
14th October 2010, 04:09
It is still a problem for me. I hope to get any information from you! Thank you very much!

tbscope
14th October 2010, 04:36
Is this the function you're looking for?
http://doc.qt.nokia.com/4.7/qwidget.html#setContentsMargins

ChrisW67
14th October 2010, 04:53
Also QLayout::spacing() and QLayout::setContentsMargins() and the equivalents in sub-classes.