[Qt-interest] How to alter QVBoxLayout widget spacing ?
Alexandre Beraud
aberaud at infflux.com
Wed Feb 17 15:07:30 CET 2010
Hi,
I am surprised that you couldn't fix your problem with
QLayout::setContentsMargins(). Make sure that you set small margin
values (top, bottom, left, right) for all your layouts.
Regards,
Alex
Stephen Collyer a écrit :
> 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
> ------------------------------------------------------------------------
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
--
Alexandre BERAUD
Ingénieur Développement
Infflux - Informatique & Flux
Tel: 01 49 57 92 00 - Fax : 01 49 57 92 01
Mail: aberaud at infflux.com
Visitez notre site : www.infflux.com
More information about the Qt-interest-old
mailing list