1 tree = new QTreeWidget(this); 2 3 this->setSelectionMode(QAbstractItemView::ExtendedSelection); 4 5 tree->setColumnCount(2); 6 7 this->setColumnWidth(0, 100); //设置列宽 8 9 this->setColumnWidth(1, 300);
1 tree = new QTreeWidget(this); 2 3 this->setSelectionMode(QAbstractItemView::ExtendedSelection); 4 5 tree->setColumnCount(2); 6 7 this->setColumnWidth(0, 100); //设置列宽 8 9 this->setColumnWidth(1, 300);