遍历QTreeWidget
转自:https://blog.csdn.net/qiangzi4646/article/details/80244433
1 //ui 文件中定义 2 //QTreeWidget *treeWidget; 3 //... 4 5 //遍历treeWidget 6 QTreeWidgetItemIterator it(ui.treeWidget); 7 while (*it) { 8 //do something like 9 (*it)->text(0); 10 ++it; 11 }