PDA

View Full Version : Vertical QTabBar



OriginalCopy
1st November 2007, 15:11
How could I modify a QTabBar at runtime such that it switches between vertical and horizontal orientation of the tabs ? (similar to QToolBar, but I need the widget to change it's orientation)

marcel
1st November 2007, 15:24
If the QTabBar is inside a QTabWidget then you could use QTabWidget::setTabPosition.

dyams
4th November 2007, 07:16
OriginalCopy,
I hope instead of writing a new widget from scratch, for the time being, we can have a
1) QTabWIdget, then
2) setTabPosition(QTabWidget::East or West)
3) Then Fix the widget width to some constant value say (23).
like...
QTabWidget::setFixedWidth(23);

We hope that In future versions of Qt, we will find a readymade Vertcal TabBar ;)
-James

jpn
4th November 2007, 10:08
tabBar->setShape(QTabBar::RoundedWest);
?

dyams
5th November 2007, 14:24
Thanks jpn