treewidget双击item获取item信息出现的问题!大牛请现身!!!!
connect(tree,SIGNAL(itemDoubleClicked(QTreeWidgetItem*,int)),this,SLOT(MyitemDouble(QTreeWidgetItem*,int)));void MainWindow::MyitemDouble(QTreeWidgetItem *Tag_N1,int col){ Tag_Action = new QMenu(this); ettings = new QAction(tr("Reader Settings and Diagnostics"),this); Register = new QAction(tr("Register Map"),this); Tag_Action->addAction(Settings); connect(Settings, SIGNAL(triggered()),this, SLOT(goToSettings())); Tag_Action->addAction(Register); Tag_Action->exec(QCursor::pos()); qDebug()<< col << "good "<< Tag_N1->text(0).toAscii();}双击某个item以后会出现这个菜单,但是问题是这个菜单出现以后鼠标只要在任何地方点击一下就会弹出这个菜单!!!求原因!!!!!!!!!