void TeslaManage::OnlineTreeViewDoubleClick(const QModelIndex & index) { int row = index.row(); qDebug() << "row:" << row; QString objName = index.model()->index(0, 0).child(row, 0).data().toString(); if (root != NULL) { osg::Node* findNode = findOsgNodeByName(objName); if (findNode != NULL) { cPickHandler->setNodeTexture(findNode); } } }
来源:https://www.cnblogs.com/herd/p/11190533.html