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

Handling grab event in QQuickPointerHandler::handlePointerEvent

XMLWordPrintable

    • c0a2cd2df (dev)

      In qquickpointerhandler.cpp, there're following lines in QQuickPointerHandler::handlePointerEvent().

      event->setExclusiveGrabber(pt, nullptr);
      onGrabChanged(this, QPointingDevice::CancelGrabExclusive, event, pt);
      

      This seems that first, the grab event is ungrabbed (by setExclusiveGrabber() which emits UngrabExclusive ) and then cancelling the grab by onGrabChanged(this, QPointingDevice::CancelGrabExclusive, ...).

      This mean, there can be a scenario that you are executing a grab changed when you do not have a grab, nor are getting one.

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            nagrohn Nahomi Gröhn (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes