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

Unguarded targetItems in QQuickWindowPrivate::deliverPressOrReleaseEvent

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 5.12.1
    • None
    • All

      In QQuickWindowPrivate::deliverPressOrReleaseEvent a targetList of QQuickItems is calculated for delivering mouse events.

      In my application the mouse release event for the first item in this list results in deleting the second item of this list. Then the application crashes when iterating fowards, trying to deliver to the already deleted item.

      Using guarded pointers should avoid this problem.
      ( In my application I replaced delete by deleteLater )

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

            srutledg Shawn Rutledge
            uwe Uwe Rathmann
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There is 1 open Gerrit change