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?
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:
Qt Code:
... QList<QDockWidget *> dockWidgets = findChildren<QDockWidget *>(); ...To copy to clipboard, switch view to plain text mode
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
Bookmarks