Bad news. I read this on Qt docs:

"If the user presses the Esc key in a dialog, QDialog::reject() will be called. This will cause the window to close: The close event cannot be ignored."

So, is that impossible?

Thanks.