In Windows when I drag item and dialog exec() is called I cannot do anything. I cannot cancel drag neither click on dialog buttons.
QDrag::cancel() is called before dialog exec() and still nothing. Also I tried to call processEvents() after cancel, with our without time delay, but it still do nothing.

Qt Code:
  1. int myDialog::exec()
  2. {
  3. getActiveDrag()->cancel();
  4.  
  5. QTime dieTime= QTime::currentTime().addSecs(1);
  6.  
  7. while (QTime::currentTime() < dieTime)
  8. {
  9. QCoreApplication::processEvents(QEventLoop::AllEvents, 100);
  10. }
  11.  
  12. return QDialog::exec();
  13. }
To copy to clipboard, switch view to plain text mode 

I've found that similar problem is reported to Qt, but maybe someone has some workaround.
https://bugreports.qt.io/browse/QTBUG-58661