Re: close all messageboxes
Hi,
You can directly set the dialog as modal in ui, that will not allow any parent to get closed before its child window.
Regards,
Rohit
DON'T WALK IN THE WORLD AS IF YOU RULE THE WORLD , WALK AS IF SOMEONE RULES AND YOU DON'T CARE.....
Re: close all messageboxes
Quote:
Originally Posted by
av2306
Is there any qt api to close all opened message boxes in application?
Not specifically for QMessageBox, but you could probably us QObject::findChildren<QMessageBox*>() on your parent and then loop over the list and call close() on each.
Maybe together with delayed deletion of the parent using deleteLater().
Cheers,
_