1 2 3 4 5 6 7 8 9 10 11
#include "KeyBind.h" KeyBind::KeyBind(QWidget *parent) : QLineEdit(parent) { } void KeyBind::keyPressEvent(QKeyEvent * event) { emit newKey(event); }