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

No way to get QGamepad device name from QML

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Won't Do
    • Affects Version/s: 5.11.1
    • Fix Version/s: None
    • Component/s: GamePad
    • Labels:
      None

      Description

      QGamepad has a property connectedGamepads that returns a QList<int> of device IDs.

      There is a gamepadName to turn that into a string, but this function is not callable from QML.

      So at minimum it'd be nice to mark this Q_INVOKABLE so it works from QML, but better still would be to expose a DataModel that is directly usable to display all gamepads in a human-friendly way.

        Attachments

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

          Activity

            People

            Assignee:
            janichol Andy Nichols
            Reporter:
            pepijndevos Pepijn de Vos
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes