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

QQuickItem::touchEvent is not called when setting visible to false

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • None
    • 5.8.0 RC
    • None

    Description

      If a touch is interrupted by setting a QQuickItem's visiblity to false, QQuickItem::touchEvent isn't called with a TouchCancelEvent like it should be.

      To reproduce:

      1. Build and run the attached example
      2. Touch and hold the on the right side, you should see events for TouchPointPressed and TouchPointMoved being logged.
      3. While still touching the right side, touch and hold on the left side to toggle the visibility of the other item.

      I would expect there to be a TouchPointCancel by now, but QQuickItem::touchEvent isn't called after the visibility is set to false.

      Attachments

        Issue Links

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

          Activity

            People

              srutledg Shawn Rutledge
              johanhelsing Johan Helsing
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes