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); 

 

相关文章:

  • 2021-10-29
  • 2022-12-23
  • 2022-01-29
  • 2022-02-07
  • 2021-11-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-09
  • 2021-05-25
  • 2022-12-23
  • 2021-09-05
  • 2021-11-19
  • 2021-11-04
  • 2022-12-23
相关资源
相似解决方案