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

Incorrect value capabilities & QTouchDevice::Pressure for Android

    XMLWordPrintable

Details

    • Android

    Description

      I tested on three different Android devices, and always:

      (event->device()->capabilities() & QTouchDevice::Pressure) != 0
      

      is true. But these devices have no any sensors to detect value of pressure and this method https://developer.android.com/reference/android/view/MotionEvent#getPressure() always return "1.0".

      In other words in almost every Android device "(event->device()->capabilities() & QTouchDevice::Pressure)" should return 0.

      Internet say that "Deep Press API" is available on some Pixel 4 devices. May this is possible to use for calculation of correct capabilities.

      Attachments

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

        Activity

          People

            srutledg Shawn Rutledge
            evgeniy_dushistov evgeniy_dushistov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes