PDA

View Full Version : how to make Multi-Row QTabWidget



duduqq
10th July 2008, 03:54
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.

aamer4yu
10th July 2008, 06:43
You can instead use QToolButton/ button group and use QStackedWidget with it.
It will be more appropriate to ur requirement :)

Ginsengelf
10th July 2008, 07:02
Hi, another possibility is QToolBox as an alternative to a tabwidget.

Ginsengelf

duduqq
10th July 2008, 12:11
Hi, another possibility is QToolBox as an alternative to a tabwidget.

Ginsengelf
Thank you ,but I want to usr QTabWidget

Ginsengelf
10th July 2008, 12:55
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

wysota
10th July 2008, 18:19
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.

duduqq
11th July 2008, 01:33
Thanks!!!
I will think about the stack widget

bmn
10th April 2013, 12:23
Here is feature request about multi-row tab bar: https://bugreports.qt-project.org/browse/QTBUG-2061 - please vote!