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

QGraphicsItem: dropEvent on an item should send a dragLeaveEvent to any item underneath that had dragEnter called

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.9, 6.10
    • Widgets: GraphicsView
    • None
    • Linux/X11

      If my scene contains for instance two squares, one 100 by 100 (square A), and one 50 by 50 (square B), where B is a child of A, in the middle of it: when I drag from the outside, I see:

      • dragEnter A
      • dragMove A
      • dragMove A
      • dragEnter B
      • dragMove B
      • drop B

      So B knows that the drop has ended, but A never gets any notification. I believe the QGraphics system should always make sure that events always follow a state machine cycle enter -> move -> drop or leave, e.g. no item should ever stay in the dragMove state if the user has released the mouse.

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

            bibr Andreas Aardal Hanssen
            jcelerier Jean-Michaƫl Celerier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes