[Qt-interest] layouting problem
wim.delvaux at adaptiveplanet.com
wim.delvaux at adaptiveplanet.com
Tue Nov 3 13:41:24 CET 2009
Hi all,
Have a look at this http://imagebin.ca/view/7FCz6US.html image.
I have a problem with that scrollbar you can see.
I want the content of the QToolBox's pages to be limited to the width of the
QToolBox. Possibly a scrollbar can appear.
What is the situation in the image
I have this widget consisting of a left part (like a left bar as used by many
Websites to group together the menu's) in the image limited by the vertical
line near the right hand side of the image and a much larger right part that
contains the body of the GUI (not in the image)
The widget has a horizontal layout with stretch 1/10 meaning that the left bar
only stretches 1/10th of the right area.
In that left part I put a Widget with only one subwidget in it, a QToolBox
(shown in the image). The widget has a vertical layout containing that
QToolBox.
When I add that widget to the leftbar it is stretched to the size of the
leftbar as you can see in the image since the 'tabs' of the QToolBox are
rounded perfectly on the right hand side of the QToolBox (which is just what I
want). However the page-widgets of the QToolBox are not limited to the size
of the QToolBox but are larger than the width of the QToolBox. Therefore the
widgets I put in the pages of the QToolBox get more space, are made wider than
the toolbox and a scrollbar is produced by the page-widget to allow panning.
This is NOT what I want.
How can I acchieve this
Thanx
W
More information about the Qt-interest-old
mailing list