jeudi 26 octobre 2017

Qt keyboard modifier shift key along with another keypress not being detected

if(e->modifiers() == Qt::ShiftModifier && e->key() == Qt::Key_H)

This if statement is not executing. Could someone please point out the issue ?

I am trying to detect shift + h keypress in Qt keyPressEvent(). I am using qt 5.9

Aucun commentaire:

Enregistrer un commentaire