View Full Version : QtableView clicked() left or right button?
qlands
27th August 2011, 09:10
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.
wysota
27th August 2011, 09:26
You can't. What do you need it for?
qlands
27th August 2011, 09:45
Laziness... I just want to code even less! :)
wysota
27th August 2011, 09:46
That doesn't answer my question.
qlands
27th August 2011, 09:51
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.
wysota
27th August 2011, 09:54
See QWidget::contextMenuPolicy and friends
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.