- Sep 15, 2005
- 3,622
- 1
- 0
I am dancing around a problem and its kind of driving me nuts. Its mostly because I'm new to QT, but for the life of me I cannot tackle this problem.
The QTreeWidget has a signal called itemClicked(QTreeWidgetItem * itm, int position)
that gives you a reference to the item was clicked and the position.
Seems simple enough, except that it happens on ANY click and I need right clicks only
Yes, I know I can install an eventFilter to detect right clicks and I have done so, BUT, that does not help me at all, because then I do not have the reference to the item that was clicked. Maybe it is something simple that I am overlooking, but if anyone can point me in the right direction I would really appreciate it.
The QTreeWidget has a signal called itemClicked(QTreeWidgetItem * itm, int position)
that gives you a reference to the item was clicked and the position.
Seems simple enough, except that it happens on ANY click and I need right clicks only
Yes, I know I can install an eventFilter to detect right clicks and I have done so, BUT, that does not help me at all, because then I do not have the reference to the item that was clicked. Maybe it is something simple that I am overlooking, but if anyone can point me in the right direction I would really appreciate it.
