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

Paul Miller paul at fxtech.com
Mon Dec 22 17:38:26 CET 2008


Paul Miller wrote:
> Frank Mertens wrote:
>> Paul Miller wrote:
>>> I'm trying to customize QSplitter with custom handles that have toggle 
>>> buttons on them, so I have splitter sections that collapse down to a 
>>> single bar with a button + label. But I don't see any way of 
>>> programmatically collapsing, uncollapsing, and detecting a collapsed 
>>> splitter section.
>>>
>>> Has anyone sorted out a way of doing this?
>>>
>>> I'm using Qt 4.4.
>>>
>>>
>> I'm used to just show/hide the widgets managed by the splitter.
>> Check the documentation, there is said more about it.
> 
> Aha!! Well that makes sense. Thanks!

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?

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




More information about the Qt-interest-old mailing list