weixj2003ld
9th September 2011, 02:48
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);
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.
addDockWidget(Qt::LeftDockWidgetArea, treeDock);
addDockWidget(Qt::RightDockWidgetArea, viewDock1);
addDockWidget(Qt::RightDockWidgetArea, viewDock2);
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.