[Qt-interest] How to alter QVBoxLayout widget spacing ?

Stephen Collyer scollyer at netspinner.co.uk
Wed Feb 17 14:55:52 CET 2010


I have some code which creates a set of widgets with a structure like so:

A QScrollArea contains a ParagraphList as its widget
A ParagraphList has a QVBoxLayout containing ParagraphRow widgets.
A ParagraphRow has a QHBoxLayout containing QTextEdit widgets.

My problem is that the spacing between each ParagraphRow widget is too
great,
and I can't find any way to reduce it. I've tried adding stretches to the
QVBoxLayout,
and altering the layout's spacing and marging, yet none of this reduces it.

This is a picture of the layout which shows the problem:

http://dl.dropbox.com/u/4271762/snapshot1.png

Can anyone suggest anything else that I can try ?

-- 
Stephen Collyer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100217/f5a52dbb/attachment.html 


More information about the Qt-interest-old mailing list