[Qt-interest] How to hide tabs in QTabWidget?

Tony Rietwyk tony.rietwyk at rightsoft.com.au
Fri Jan 30 00:34:18 CET 2009


Hi Everybody, 

Using Qt 4.4.3. 

I have a QTabWidget with several tabs/pages - only some of which are relevant at any given time. I can't find a way to hide the tabs.  At the moment, I have to clear, and add the visible tabs each time the context changes.  This is flawed, since to add the tabs back, I also have to know the title set in designer. 

I tried changing the visiblility of the page widgets, but that didn't work. 

Converting from a Delphi application, it amazes me the number of features like this, that Qt doesn't have - given that Delphi is much older! 

Thanks, 

Tony.





More information about the Qt-interest-old mailing list