I want when somebody press Ctrl+Q the application to close... So how can i do this?
I now the command
qApp->quit();
But i do not know how to add the hotkey..
I want when somebody press Ctrl+Q the application to close... So how can i do this?
I now the command
qApp->quit();
But i do not know how to add the hotkey..
override the QWidget::keyPressEvent(QKeyEvent * event) of the widget you are using.
Bookmarks