How to set Active Tab in DockWidget?

  • Dear all,

    I used as tab style to set two DockWidget Widgets in QMainWindow.

    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)?


  • 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?


  • 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)

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.