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

    • All
    • 243c8403903781a28832e0bf34ce962058300e99 (qt/qtbase/5.12.3)

      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

        For Gerrit Dashboard: QTBUG-73977
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes