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

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

XMLWordPrintable

    • iOS/tvOS/watchOS
    • c2e142ced (dev), 68b7deef9 (6.8), c7ab23baf (6.7)

      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.

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

            dorisverria Doris Verria
            luqiaochen Luqiao Chen
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes