I create a mainwindow by inheriting QMainWindow,and on the left of the mainwindow,I create a tree throw the following code,
...
dock->setWidget(projecttree);
addDockWidnget(Qt::LeftDockWidgetArea,dock);
QTreeWidget *projecttree=new QTreeWidget();
...
QDockWidget *dock=new QDockWidget (tr("project"),this);
dock->setWidget(projecttree);
addDockWidnget(Qt::LeftDockWidgetArea,dock);
To copy to clipboard, switch view to plain text mode
When I run my program.I find that the initial width of projectree is large, how to change it or how to set the initial width?
Bookmarks