[Qt-interest] QVBoxLayout widget spacing
Ramesh
ramesh.bs at robosoftin.com
Mon May 3 06:17:58 CEST 2010
Try by modifying the margins of layout..
Use "setContentsMargins()"
-----Original Message-----
From: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] On Behalf Of Harold Hausman
Sent: Sunday, May 02, 2010 1:57 AM
To: qt-interest at trolltech.com
Subject: [Qt-interest] QVBoxLayout widget spacing
Hi,
I'm trying to use a QVBoxLayout to lay out some custom widgets I've
created and I have some questions.
The custom widgets have a fixed height, as in setFixedHeight( 200 ).
When I add the first widget to the QVBoxLayout, it lays it out in the
middle of the layouts's area (the layout is taller than the widget I'm
adding in). This isn't what I want.
I'd like the layout to instead add the widget at the top of the
layout. Is there a way to set it up to do this? Essentially, instead
of evenly spacing the child widgets out, I'd like the layout to just
use the available space from top to bottom as widgets are added (with
all the unused space collected at the bottom).
Thanks in advance for any insight,
-Harold
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
-----------------------------------------------
Robosoft Technologies - Come home to Technology
Disclaimer: This email may contain confidential material. If you were not an intended recipient, please notify the sender and delete all copies. Emails to and from our network may be logged and monitored. This email and its attachments are scanned for virus by our scanners and are believed to be safe. However, no warranty is given that this email is free of malicious content or virus.
More information about the Qt-interest-old
mailing list