Details
-
Suggestion
-
Resolution: Done
-
Not Evaluated
-
None
-
5.6.0
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 |
155326,2 | Add signal QMainWindow::tabifiedDockWidgetActivated | 5.6 | qt/qtbase | Status: ABANDONED | 0 | 0 |
155355,5 | Add signal QMainWindow::tabifiedDockWidgetActivated | dev | qt/qtbase | Status: MERGED | +2 | 0 |