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

QDrag::exec doesn't work between different processes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2: Important P2: Important
    • None
    • 5.5.1, 5.6.1, 5.9.2, 5.9.3
    • GUI: Drag and Drop
    • None
    • Debian
    • macOS

      When performing a dragndrop between 2 processes (running the same program), the QDrag::exec return value is 0 (Qt::IgnoreAction), but running the DND in a single process, QDrag::exec returns a sensible value (for example Qt::MoveAction).

      The issue seems to be in Qt5, if running the same program with Qt4, it works fine.

      To see the problem, build the attached source code, run 2 instances of the program, it will show 2 windows, and do a drag from one to the other. The issue doesn't appear if drop on the same window where it was dragged.

        1. dnd.pro
          0.1 kB
          octopoo
        2. main.cpp
          0.9 kB
          octopoo
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.graphics.and.multimedia Qt Graphics Team
            octopoo octopoo
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes