Custom QAction/QMenu for mouse button detection

Posted by voodoogiant on Stack Overflow See other posts from Stack Overflow or by voodoogiant
Published on 2010-12-24T21:00:14Z Indexed on 2010/12/24 22:54 UTC
Read the original article Hit count: 171

Filed under:
|
|
|

I'm trying to create a popup menu, where I can detect the mouse button that was pressed for a given item. I've created a custom QAction already to build my QMenu, but the triggered signal when the menu item is pressed doesn't provide a QMouseEvent for me to query the button pressed.

Also, I'm setting the a status tip for each QAction, which appears in the status bar when I mouse over it, but it stays even after I close the QMenu. Is this normal behavior?

© Stack Overflow or respective owner

Related posts about qt

Related posts about button