QTreeWidget双击事件
#include <QtWidgets/QWidget>
public slots: void OnlineTreeViewDoubleClick(QTreeWidgetItem*,int); private: QTreeWidget* treeWidget_set;
connect(treeWidget_set, SIGNAL(itemDoubleClicked(QTreeWidgetItem*, int)), this, SLOT(OnlineTreeViewDoubleClick(QTreeWidgetItem*, int)));
void OnlineTreeViewDoubleClick(QTreeWidgetItem* indexItem, int itemID) { QString itemText = indexItem->text(itemID); qDebug() << "--" << itemText; }
##########################