MrGarbage
9th July 2007, 21:45
Hi,
I have a very simple main application, done in entirely in QT Designer.
On the left I have a List widget. On the right a stacked widget.
As items in the list are selected the stacked widget changes pages appropriately.
I want the list widget to be only about as wide as the max text it contains, ie "Page 1".
No matter what I seem to do with the layout and size policy, the list widget always expands horizontally to occupy about 1/3 of the application window. I cannot seem to get it force it to be a narrower width.
Everything resizes correctly, but I don't want or need the list widget taking up so much real estate.
How do I do this with QT designer?
Thanks!
Mark
I have a very simple main application, done in entirely in QT Designer.
On the left I have a List widget. On the right a stacked widget.
As items in the list are selected the stacked widget changes pages appropriately.
I want the list widget to be only about as wide as the max text it contains, ie "Page 1".
No matter what I seem to do with the layout and size policy, the list widget always expands horizontally to occupy about 1/3 of the application window. I cannot seem to get it force it to be a narrower width.
Everything resizes correctly, but I don't want or need the list widget taking up so much real estate.
How do I do this with QT designer?
Thanks!
Mark