Hi

I am using the following code in keypressevent() to catch CTRL+Enter and CTRL+Return keys.

I find that CTRL+Return works fine, however only the code for ctrl key is passed when i use ctrl+enter(numeric keypad).
What am i doing wrong here?

Thanks

Qt Code:
  1. if ((e->modifiers()==Qt::ControlModifier) && (e->key()==Qt::Key_Return || e->key()==Qt::Key_Enter|| e->key()==Qt::Key_Space) )
  2. {
  3. test;
  4. }
To copy to clipboard, switch view to plain text mode