Dialog close called but not closing?
-
Under what circumstances will a call to close() not close the dialog?
I have a button on the dialog with the text Abort, if I click the abort button it calls the close function and this works quite reliably.
From the application if there is a problem I emit a signal which calls a function called closeDialog, this function calls the close() function, but it isn't closing the dialog, why, what can I do to resolve this?
-
@mrjj , only because I am ignorant and didn't know they existed or how and when to use them?
Well, they are mostly used when dialog is being shown modally.
That is, you call exec() on it.
Then accept/reject set the result and closes the dialog.
It's to know if the user canceled or accepted the dialog.It's basically the same as calling
https://doc.qt.io/qt-5/qdialog.html#setResult
and then the close -
Hi
That I have not heard before.However, is three a reason you don't use
accept()/reject()/done() -
Hi
That I have not heard before.However, is three a reason you don't use
accept()/reject()/done() -
@mrjj , only because I am ignorant and didn't know they existed or how and when to use them?
Well, they are mostly used when dialog is being shown modally.
That is, you call exec() on it.
Then accept/reject set the result and closes the dialog.
It's to know if the user canceled or accepted the dialog.It's basically the same as calling
https://doc.qt.io/qt-5/qdialog.html#setResult
and then the close