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

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

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes