There is a list of tabbified widgets that I can get from mainwindow, but how can I get a list of all dockwidgets in the mainwindow?
Printable View
There is a list of tabbified widgets that I can get from mainwindow, but how can I get a list of all dockwidgets in the mainwindow?
try to use QObject::findChildren, i.e. in your case a code in a main window should look like:
Code:
... QList<QDockWidget *> dockWidgets = findChildren<QDockWidget *>(); ...