原创 QTreeWidget的使用

1.基本用法: 初始化用基本用到的: //this->setMouseTracking(true); this->setRootIsDecorated(false); this->setSelectionMode(QAbstractIt

原创 QTableWidget的使用

一.初始化 void init() { setRowCount(1);//設置一行 setColumnCount(2);  //設置兩列 int row = rowCount(); removeRow(row);//清除已有的行列 set