Hi All,

How can I make a dialog modal dynamically ?

My application has one working thread , I just want to make my dialog Modal(e.g. setModal(true)) till that thread is done with all the calculations.There I have one API (scriptInExecution()) which returns true if calculation is in progress.

I tried this using setModal(true) but it's not working ,than I used QApplication:rocessEvent() but still I got nothing.

Qt Code:
  1. if(true == scriptInExecution())
  2. {
  3. this->setModal(true);
  4. }
  5. else
  6. {
  7. this->setModal(false);
  8. }
To copy to clipboard, switch view to plain text mode 
Am I missing something

Thanks.