PDA

View Full Version : how catch the key alt+f4 in my QApplication



waiter
10th August 2012, 04:57
hello,how catch the key alt+f4 in my QApplication?when alt+f4 pressed,I don't want to quit my widget QApplication.

spirit
10th August 2012, 06:25
Is it for Windows? Use QCloseEvent & QWidget::closeEvent.