av2306
24th November 2013, 09:22
Hi all,
My gui application opens different message boxes in different forms. I set parent to these message boxes as parent form. Created all messageboxes with QMessagebox::question(...). When I delete parent form (widget), It's throwing exception. If I change to NULL as a parent for message box, it's working fine.
Now, I want to close all message boxes before deleting widget (parent form).
Is there any qt api to close all opened message boxes in application?
Thanks.
My gui application opens different message boxes in different forms. I set parent to these message boxes as parent form. Created all messageboxes with QMessagebox::question(...). When I delete parent form (widget), It's throwing exception. If I change to NULL as a parent for message box, it's working fine.
Now, I want to close all message boxes before deleting widget (parent form).
Is there any qt api to close all opened message boxes in application?
Thanks.