Hi all,
first of all: my english is not good, so sorry for this....

I have a strange problem with al little test that I am writing following:

Qt Code:
  1. #include <QApplication>
  2. #include <QProgressDialog>
  3. int main(int argc, char* argv[])
  4. {
  5. QApplication app(argc, argv);
  6.  
  7. dlg.setRange(0, 0);
  8. dlg.show();
  9.  
  10. // I want to simulate a process that takes a long time
  11. for (int i = 0; i < 1000000; i++)
  12. {
  13. qDebug() << i;
  14.  
  15. // Call process event to have a GUI responsivity
  16. QCoreApplication::processEvents();
  17. }
  18.  
  19. dlg.hide();
  20. return app.exec();
  21. }
To copy to clipboard, switch view to plain text mode 

The program behaves as it should, but....if i click on ProgressDialog WindowBar (when lives close buttons :-) ) the loop counter freezes but the progress animation NOT! It 'a bit annoying.

I'm something wrong? I can do something to prevent this behavior?

I tried to intercept mouse events...
I tried this test on Mac.