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)
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)
If the QTabBar is inside a QTabWidget then you could use QTabWidget::setTabPosition.
OriginalCopy (4th November 2007)
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
?Qt Code:
To copy to clipboard, switch view to plain text mode
J-P Nurmi
dyams (5th November 2007)
Thanks jpn
Bookmarks