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

WASM: QInputDevice::devices() erroneously reports that a touchscreen exists

XMLWordPrintable

    • WebAssembly
    • 8d11e05f8 (dev), 62f83ac45 (6.5), ea4501366 (tqtc/lts-6.2)

      Add this line the main() function of any WASM project and run it on a device that has no touchscreen (for example, a basic desktop PC):

      qDebug() << "Devices:" << QInputDevice::devices();
      

      The browser's Developer Console will print something like this:

      Devices: QList(QPointingDevice("touchscreen" TouchScreen id=1 ptrType=Finger caps=Position|Area|NormalizedPosition maxPts=10))
      

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

            mikolaj.boc MikoĊ‚aj Boc (Inactive)
            skoh-qt Sze Howe Koh
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes