How to set Active Tab in DockWidget?
-
Dear all,
I used as tab style to set two DockWidget Widgets in QMainWindow.
@addDockWidget(Qt::LeftDockWidgetArea,firstDock,Qt::Vertical);
addDockWidget(Qt::LeftDockWidgetArea,secondDock,Qt::Vertical);
this->tabifyDockWidget(firstDock,secondDock);@After this, secondDock is set on the right of the firstDock & secondDock becomes current Tab.
How can I set firstDock as current Tab without changing current order (first, second)?Thanks
-
Why are you using tabifyDockWidget?
-
[quote author="veeeee_d" date="1320914351"]Why are you using tabifyDockWidget?[/quote]
I think to create tabbed dock programmatically ;-) -
Yes, I create tabbed dock programmatically.
I would to set (Active or Current) Tab as first Tab Dock programmatically.
How can I do that?
Thanks
-
Quote from docs ...
bq. Two dock widgets may also be stacked on top of each other. A QTabBar is then used to select which of the widgets that should be displayed.
Maybe if you find this tabbar pointer ... :-) (I don't know, maybe somebody else have the solution)