Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-52175

Provide a signal to catch tabbed QDockWidget activation by it's tab activation

    XMLWordPrintable

Details

    Description

      Currently it's impossible to detect tabbed QDockWidget activation moment.
      There isn't a user-accessed event when a click on the dock tab is occured or the tab switched in other way (example: change the focus with Tab button and press arrow right/left button).

      The signal can have a similar signature:

      void QMainWindow::dockWidgetActivated(QDockWidget* w);
      

      As QMainWindow has a set of tab bars inside that handle dock widgets switches, it's possible to forward a signal
      QTabBar::currentChanged(int index) to the outside with replacing an integer parameter with a pointer to the activated QDockWidget.

      See QMainWindowTabBar inside qmainwindowlayout.cpp

      Attachments

        For Gerrit Dashboard: QTBUG-52175
        # Subject Branch Project Status CR V

        Activity

          People

            peppe Giuseppe D'Angelo
            ailin Aleksei Ilin
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes