https://blog.csdn.net/u012199908/article/details/44920363
QHeaderView *head=treeWidget->header();
head->setSectionResizeMode(QHeaderView::ResizeToContents);
QHeaderView控制QTreeWidget的单元格适应规则
https://blog.csdn.net/u012199908/article/details/44920363
QHeaderView *head=treeWidget->header();
head->setSectionResizeMode(QHeaderView::ResizeToContents);
QHeaderView控制QTreeWidget的单元格适应规则