Qt-interest Archive, March 2007
qsplitter: initial position
Message 1 in thread
hi,
I am trying to change QSplitter's initial position (using designer).
For example:
In designer, I create a QMainWindow with 2 QListViews. I put them in a QSplitter layout and set
QMainWindow's layout to vertical.
What I want now is that the left QListView is expanding, and the right one is, say, having a default
width of 100px (still expandable by the user). I tried setting sizePolicy and baseSize, but that
didn't work for me..
Thanks for help!
Cheers,
Manu
--
[ signature omitted ]
Message 2 in thread
oh, sorry, I made it work now.
setting horizontalStretch for both QListViews did the job
(forgot to set the value of the right QListView from 0 to 1)
manu
Manuela Hutter wrote:
> hi,
>
> I am trying to change QSplitter's initial position (using designer).
>
> For example:
> In designer, I create a QMainWindow with 2 QListViews. I put them in a
> QSplitter layout and set QMainWindow's layout to vertical.
>
> What I want now is that the left QListView is expanding, and the right
> one is, say, having a default width of 100px (still expandable by the
> user). I tried setting sizePolicy and baseSize, but that didn't work for
> me..
>
> Thanks for help!
>
> Cheers,
> Manu
--
[ signature omitted ]