Q_SIGNALS:
void pressed();
void released();
void clicked(bool checked = false);
void toggled(bool checked);
protected:
bool event(QEvent *e);
void keyPressEvent(QKeyEvent *e);
void keyReleaseEvent(QKeyEvent *e);
先调哪个?
------解决思路----------------------
一直是按下去时候的消息,
一个是键盘键按下去的消息.