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

grabPermissions: PointerHandler.TakeOverForbidden conflicts with contentItem (or ItemDelegate) on iOS

    XMLWordPrintable

Details

    • iOS/tvOS/watchOS

    Description

      The sample that I am testing with is attached. Run it with 6.6.x or 6.7.x. It's a ListView whose delegated item is the 3rd example here:
      https://doc.qt.io/qt-6/qml-qtquick-draghandler.html#details
      A Rectangle is added to show where the border is.

      It runs perfectly on macOS. Each delegated item can be pressed on, and mouse can move inside it with correct Text being rendered and moved with cursor. With mouse button released, the history of transition of grab is 1->16->32->2.

      But is not on iOS. One can only press on delegated item, but no response to pressed move. With mouse button released, the history of transition of grab is 1->2. But with grabPermissions: PointerHandler.TakeOverForbidden commented out, it works as expected on iOS.

      So I am wondering if grabPermissions: PointerHandler.TakeOverForbidden is causing problem on iOS. Why is it handled differently on iOS?

      One thing is that if the DragHandler is not put inside a contentItem: ItemDelegate, i.e. just run the 3rd sample (https://doc.qt.io/qt-6/qml-qtquick-draghandler.html#details) as it is, then it works on both macOS and iOS, regardless of grabPermissions.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            luqiaochen Luqiao Chen
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes