Hi,

I would like to find out if the user pressed a key on the keyboard when clicking a mouse button on a widget. Unfortunately, the QMouseEvent carries only the information about the KeyboardModifiers, but I want to find out whether a letter key is pressed, let's say P+Left click.

Does anyone know how to achieve this?

Many thanks in advance