PDA

View Full Version : Hiding QTabBar on QTabWidget



araglin
15th July 2009, 09:37
I want to add an option to hide QTabBar if there are only one tab at QTabWidget but I couldn't find any method like setVisible() neither in QTabBar class nor in QTabWidget class. Could you please help me to find out how to do this? Thanks!

araglin
15th July 2009, 09:42
I need to subclass from QTabWidget and use QTabBar()->hide/show()... Thanks to Wysota, answered this question in another thread. Delete this topic please...

nish
15th July 2009, 09:48
its better if you also post a link to that topic :)

araglin
15th July 2009, 10:08
Here it is!
http://www.qtcentre.org/forum/f-qt-programming-2/t-show-tabbar-only-if-there-are-more-than-1-tabs-9187.html