if i press e in keyboard,,my application should close,,i tried (this.close) bt my application was not closed,
my code below:
Qt Code:
  1. widget.cpp
  2. void Widget::keyPressEvent(QKeyEvent *event)
  3. {
  4.  
  5. if(event->key()==Qt::Key_E)
  6. {
  7. this->close();
  8. }
  9. }
To copy to clipboard, switch view to plain text mode 
what am doing wrong?? please give me suggestion for this
Thanks in advance