I have eight tab at the QTabWidget,i want it have two Row
Is there a way to make QTabWidget's QTabbar grow downward when it reaches its width limit? So you would end up with multiple rows of tabs.
I have eight tab at the QTabWidget,i want it have two Row
Is there a way to make QTabWidget's QTabbar grow downward when it reaches its width limit? So you would end up with multiple rows of tabs.
You can instead use QToolButton/ button group and use QStackedWidget with it.
It will be more appropriate to ur requirement
Hi, another possibility is QToolBox as an alternative to a tabwidget.
Ginsengelf
Hi, in that case I think you have to create your own subclass of QTabBar, and layout the tabs yourself (or maybe QTabBar even provides methods to change the layout of the tabs, I don't know that).
Ginsengelf
Are you sure you want tabs in multiple rows? It's one of Microsoft's worst decisions to introduce such a control... I'd really think about using something better (QToolBox is a Bad widget as well, so I wouldn't use it) like a combobox with a stacked widget or a list widget with a stacked widget; they use the space much more efficiently than tool boxes or multiple row tabs.
Thanks!!!
I will think about the stack widget
Here is feature request about multi-row tab bar: https://bugreports.qt-project.org/browse/QTBUG-2061 - please vote!
Pardeep (18th June 2013)
Bookmarks