PDA

View Full Version : Setting width of widgets from QSplitter?



adutzu89
16th May 2014, 15:21
I am using QSplitter to set a sliding menu on android, but I cannot hide the widget from left screen.
Tried using QSplitter::setSizes and setStretchFactor but nothing. Any help?

anda_skoa
17th May 2014, 13:03
Can you give a bit more substance on what you are seeing, what your code looks like and what you want to see?

Cheers,
_

adutzu89
22nd May 2014, 08:51
So I want, when the application starts, the left widget to be hidden until the user drags the spliiter handle.

anda_skoa
23rd May 2014, 15:26
I don't see where you cal setSizes() in there.

So I added one, using 0 for the first size, and, as expected, the left widget is collapsed.

Cheers,
_

adutzu89
24th May 2014, 13:07
Can't remember what I've done wrong, but it works.......thank you.