PDA

View Full Version : Checking for key press on mouse event



Cruz
24th January 2009, 18:15
Hello,

when I receive a mouse pressed event, I would like to know if the CTRL key is pressed at the same time. I don't think handling keyboard events and keeping internal states is the right approach here. What do I need to look at?

jpn
24th January 2009, 18:18
See QApplication::keyboardModifiers().