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

Unguarded targetItems in QQuickWindowPrivate::deliverPressOrReleaseEvent

    XMLWordPrintable

Details

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

    Description

      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 )

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change