hi friends
i want my Qt application not to close if i press Alt & F4 key.
i have tried so many options.
but none is working..
can anybody help..
hi friends
i want my Qt application not to close if i press Alt & F4 key.
i have tried so many options.
but none is working..
can anybody help..
Have you tried ignoring the close event?
J-P Nurmi
You can also catch winevents, and stop the keypress from beeing sent further.
or you can register to recieve native keypresses and "stop" them using win32 api, x11 api or the api for mac, but then you are not cross platform anymore if you don't write the routines for all platforms...
You must override QWidget::closeEvent()
Bookmarks