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

Impossible to test touch events in user applications

XMLWordPrintable

    • 04e224b19ab04ff4d5e0b3fa70c2669ab2656037

      There are functions for making touch events (QTest::touchEvent), but it is impossible to use that as those require touch device. QTouchDevice can be created and given to event, but there is no public interface where it could be registered, thus every touch event fails in:

      QWindowSystemInterface::handleTouchEvent()

      Where it tries to check if touch device is real with:
      if (!QTouchDevicePrivate::isRegistered(device)) ...

      QWindowSystemInterface::registerTouchDevice() can be used to register touch devices, but that is not public API.

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

            srutledg Shawn Rutledge
            poikelin Joni Poikelin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes