Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    How to set Active Tab in DockWidget?

    General and Desktop
    4
    5
    4862
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Z
      zither last edited by

      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

      1 Reply Last reply Reply Quote 0
      • V
        veeeee_d last edited by

        Why are you using tabifyDockWidget?

        1 Reply Last reply Reply Quote 0
        • R
          rokemoon last edited by

          [quote author="veeeee_d" date="1320914351"]Why are you using tabifyDockWidget?[/quote]
          I think to create tabbed dock programmatically ;-)

          1 Reply Last reply Reply Quote 0
          • Z
            zither last edited by

            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

            1 Reply Last reply Reply Quote 0
            • C
              cincirin last edited by

              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)

              1 Reply Last reply Reply Quote 0
              • First post
                Last post