Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-4285

Add API to detect if a drag and drop operation is active

XMLWordPrintable

      It would be nice if it was possible to query if a drag and drop operation is currently active, similar to QApplication::activeModalWidget() and QApplication::activePopupWidget().

      This would make it easier to control code execution while a drag and drop operation is active, especially if the programmer does not control the execution of QDrag (for example if they are using the convenience drag and drop functionality in Qt).

      This is particularly true on Windows, where QDrag::exec() blocks Qt's event loop, but still processEvents() is frequently called, which would deliver timer events (and other events) which in turn could block the drag operation!

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Unassigned Unassigned
            sthomass Stian Sandvik Thomassen (closed Nokia identity) (Inactive)
            Votes:
            5 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes