I think it should be quite normal if you really think about it. Because if you right click on any item, it should show a context menu for that item it was clicked on right?
_______________________________________________
Qt-interest mailing list
Qt-in...@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
void MainWindow::on_MyTree_itemClicked ( QTreeWidgetItem * item, int column )
{
if(qApp->mouseButtons()!=Qt::LeftButton) return;
qDebug() << "on_MyTree_itemClicked"
<< item->text(column);
//to do somthing
}
> --
> 您收到此邮件是因为您订阅了 Google 网上论坛的“Qt中文”论坛。
> 要向此网上论坛发帖,请发送电子邮件至 qt-c...@googlegroups.com。
> 要取消订阅此网上论坛,请发送电子邮件至 qt-china+u...@googlegroups.com。
> 若有更多问题,请通过 http://groups.google.com/group/qt-china?hl=zh-CN 访问此网上论坛。
>