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

Windows: QInputDevice::devices() returns empty list

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.2.8, 6.5.0
    • None
    • Windows 10 22H2, MSVC 2019 or MinGW 11.2.0
    • Windows
    • 8d11e05f8 (dev), 62f83ac45 (6.5), ea4501366 (tqtc/lts-6.2)

      Add this line the main() function of any project:

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

      This seems to produce correct information on macOS 13.3.1 and Ubuntu 22.04, but returns an empty list on Windows 10 22H2 (physical machine).

       

      Notes

      I do have the following devices plugged in, which are all recognized by Windows Device Manager:

      • A very basic wired USB keyboard
      • A Logitech wireless dongle, that is paired to one keyboard and one mouse

      Unplugging either one of the USB connectors and rerunning the app makes no difference.

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

            owolff Oliver Wolff
            skoh-qt Sze Howe Koh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes