The code for that app is in "demos/mainwindow" or in the docs here.
One way to do what you want to do is make a list of available dock areas and iterate through it:
QList <Qt
::DockWidgetArea> dockAreaList;
dockAreaList << Qt::TopDockWidgetArea << Qt::RightDockWidgetArea << Qt::BottomDockWidgetArea << Qt::LeftDockWidgetArea;
QList <Qt::DockWidgetArea> dockAreaList;
dockAreaList << Qt::TopDockWidgetArea << Qt::RightDockWidgetArea << Qt::BottomDockWidgetArea << Qt::LeftDockWidgetArea;
To copy to clipboard, switch view to plain text mode
Then in your for loop:
addDockWidget(dockAreaList[i], qa);
addDockWidget(dockAreaList[i], qa);
To copy to clipboard, switch view to plain text mode
Bookmarks