[Qt-interest] Fwd: How to alter QVBoxLayout widget spacing ?
Stephen Collyer
scollyer at netspinner.co.uk
Wed Feb 17 15:52:29 CET 2010
On 17 February 2010 14:15, william.crocker at analog.com <
william.crocker at analog.com> wrote:
>
>
> Alexandre Beraud wrote:
> > 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.
> >
>
>
> When I do QLayout work I set all layouts to:
>
> lp->setContentsMargins(0,0,0,0); lp->setSpacing(0);
>
>
OK. I was originally trying to set the layout margin with
QLayout::setMargin(0)
but I've taken a look at the docs and I can't find its description, so I'm
confused
about what I was actually doing. That being said, I've tried the suggestion
above,
and it improves things somewhat. My layout now looks like this:
http://dl.dropbox.com/u/4271762/snapshot2.png
which has reduced margins, but apparently non-zero. Is this the best I'm
likely
to be able to achieve ?
[oops -originally sent to Mr Crocker only. Die, Googlemail interface, die]
--
Stephen Collyer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100217/5c7f7886/attachment.html
More information about the Qt-interest-old
mailing list