you mast read abut QDialog first of all.

after that i can suggest you to reimplement void QDialog::reject() [protected]
like this
Qt Code:
  1. ...
  2. void reject()
  3. {
  4. //nothing :)
  5. }
  6. ...
To copy to clipboard, switch view to plain text mode