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

[Reg 5.11.3-> 5.12.0]Drop events not propagated to parent Widget if setAcceptDrops(true) is set for child

    XMLWordPrintable

    Details

    • Platform/s:
      All
    • Commits:
      243c8403903781a28832e0bf34ce962058300e99 (qt/qtbase/5.12.3)

      Description

      If setAcceptDrops(true) is set on QLabel with no handling for dropevents() for it, dropEvents are not getting propagated to its parent.
      It was working with 5.11.3 but not with 5.12.x

      Steps to reproduce:
      1. Execute the attached sample.
      2. Drag some file to middle of window (means on top of label text)
      3. The file does not get dropped. If you drop file just on top edge of the window (outside label geometry, it works)
      You might have to try step 3 for multiple times to reproduce this issue.

      This works fine with 5.11.x and 5.9.x versions and is not working with 5.12.x

        Attachments

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

          Activity

            People

            Assignee:
            paeglis Gatis Paeglis
            Reporter:
            shmittal Shveta Mittal
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes