Hi,
In a QtableView when I connect the signal clicked() how can I know if if was emitted by the left or right button?
Thanks,
Carlos.
Printable View
Hi,
In a QtableView when I connect the signal clicked() how can I know if if was emitted by the left or right button?
Thanks,
Carlos.
You can't. What do you need it for?
Laziness... I just want to code even less! :)
That doesn't answer my question.
Well, I just wanted to know when the user right clicked a cell so I can show some extra information. I can do it by subclassing the tableview and re-implement the release... But if there is another way around without subclassing...It might save me some extra lines of code.
See QWidget::contextMenuPolicy and friends