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

DropAreas work weirdly when they are intersectant

    XMLWordPrintable

Details

    • 3fde977a817498817e98ce350d493658b0ed4458 (qt/qtdeclarative/5.15)

    Description

      1 DragDropBug1Sample1 and DragDropBug1Sample2 are similiar. But their outputs are different when you do as following.

      step DragDropBug1Sample1 output DragDropBug1Sample2 output
      Drag the red rectangle to blue rectangle, and don't release left button onEntered greenDropArea onEntered blueDropArea onEntered blueDropArea
      Then drag the red rectangle to green rectangle, and don't release left button onExited blueDropArea onExited blueDropArea onEntered greenDropArea
      Then drag the red rectangle back to blue rectangle, and don't release left button onEntered blueDropArea -
      Finally drag the red rectangle back to white background onExited blueDropArea onExited greenDropArea onExited greenDropArea

      2 DragDropBug1Sample3 can be tested as following. Notice: the outputs of step 2 and step 4 are empty.
      1) Drag red rectangle to green rectangle, and don't release left button. (output---onEntered greenDropArea)
      2) Then drag red rectangle to the intersection between green rectangle and blue rectangle, and don't release left button. (output---)
      3) Then drag red rectangle to blue rectangle, and don't release left button. (output---onExited greenDropArea onEntered blueDropArea)
      4) Then drag red rectangle back to the intersection between green rectangle and blue rectangle, and don't release left button. (output---)
      5) Then drag red rectangle to green rectangle, and don't release left button. (output---onExited blueDropArea onEntered greenDropArea)
      6) Finally drag red rectangle back to white background. (output---onExited greenDropArea)

      Attachments

        1. dnd.qml
          1 kB
        2. DragDropBug1Sample1.qml
          1 kB
        3. DragDropBug1Sample2.qml
          1 kB
        4. DragDropBug1Sample3.qml
          1 kB
        5. QTBUG-30305_rebased.patch
          7 kB

        Issue Links

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

          Activity

            People

              srutledg Shawn Rutledge
              sanwangshan Shan Wang
              Votes:
              12 Vote for this issue
              Watchers:
              16 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes