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

[macOS]: When triggering a pan gesture and then deleting the widget that it is intended for can cause a crash

    XMLWordPrintable

Details

    • macOS
    • c1ead32a84db96fd1b48e47d81511adf64cfe410

    Description

      [macOS]: When triggering a pan gesture and then deleting the widget that it is intended for can cause a crash. What happens is that it will delete the widget the gesture has started the timer for, yet the timer is not removed and therefore it ends up crashing when it tries to deliver it.

      This happens on macOS as it uses QMacPanGestureRecognizer. When it starts a gesture it has a QBasicTimer which is set to the widget as the target to timeout in 300 ms. If the widget is deleted before this timer fires it can crash due to the fact that the target is no longer valid.

      Attachments

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

        Activity

          People

            smd Jan Arve
            andysh Andy Shaw
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes