In QMainWindow,I create three QDockWidget,and add them with the following code:
addDockWidget(Qt::LeftDockWidgetArea, treeDock);
addDockWidget(Qt::RightDockWidgetArea, viewDock1);
addDockWidget(Qt::RightDockWidgetArea, viewDock2);
addDockWidget(Qt::LeftDockWidgetArea, treeDock);
addDockWidget(Qt::RightDockWidgetArea, viewDock1);
addDockWidget(Qt::RightDockWidgetArea, viewDock2);
To copy to clipboard, switch view to plain text mode
Now I have two questions:
1. how to set the default size of treeDock? for its default size is half of the mainwindow,and it is too wide.
2.viewDock1 and viewDock2 aligned vertically? how to let them align horizonally?
Thanks.
Bookmarks