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

MouseArea not working after Drop

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.12.1
    • Fix Version/s: None
    • Component/s: Quick: Other
    • Labels:
      None
    • Environment:
      Ubuntu 18.04, Mac OS 10.14.3 Apple LLVM version 10.0.0 (clang-1000.11.45.5)

      Description

      I extended Qt's draganddrop example, by giving the icons a MouseArea. I want that MouseArea to perform an Action onPressAndHold, but only if the item is not being dragged. This MouseArea works at startup, but if the item is dropped after a drag, the MouseArea is not responding to my clicks anymore. However, after e.g. 5 clicks, it starts responding again. This seems like a bug to me.

      To reproduce this behaviour, execute the attached file, and click on the icons before, and after dragging. If a click was successull, you will see an output via console.log

        Attachments

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

          Activity

            People

            • Assignee:
              w00t Robin Burchell
              Reporter:
              maxwell31 James Maxwell
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes