jeudi 28 septembre 2017

QT Closing QDialogs/QMessageBox opened from calling exec() when the parent window is closing

I am opening a QDialog/QMessageBox using exec() to get user input. But before the user selects Save or Discard from the message box, the parent window from which it was opened is closed.

When this happens the application crashed.

Can the QDialog/QMessageBox be closed when the parent is closed. ?

Aucun commentaire:

Enregistrer un commentaire