[Qt-interest] How to QDialog modal after it has been shown

Kishore Jonnalagadda kitts.mailinglists at gmail.com
Fri Oct 7 21:28:56 CEST 2011


I have a simple case where once the use clicks on a button in the dialog, i 
want to make the dialog modal till the request (async) is complete or times 
out. However, calling setModal(true) on the dialog does not seem to help. It 
only makes a difference when set before _first_ call to show().

Is there a way around? I would not like to show another modal dialog on top 
during the operation as i have a nice progress bar within the dialog for that.
-- 
Regards,
Kishore

I have tried first hiding the dialog, then setting it modal and then showing 
again but that does not help either.



More information about the Qt-interest-old mailing list