[Qt-interest] QSplitter - collapsing/uncollapsing programatically?

Paul Miller paul at fxtech.com
Tue Dec 23 15:46:48 CET 2008


Bernd Brandstetter wrote:
> On Monday 22 December 2008, Paul Miller wrote:
>> Oh well, this doesn't quite do what I want, since hiding the widget will
>> also hide the handle! I want the handle to be visible, just collapsed
>> down.
>>
>> Is there another way around this?
> 
> Please have a look at QSplitter::setSizes() and QSplitter::sizes(). 
> Couldn't you use these methods to achieve what you want?

Yes - this is what I ended up doing. It's a little unintuitive though, 
but it seems to work so far.

Would be nice if programmatic collapsible sections were built into the 
widget though. Maybe I'll contribute my custom classes to the Qwt library.

-- 
Paul Miller | paul at fxtech.com | www.fxtech.com | Got Tivo?




More information about the Qt-interest-old mailing list