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

Button overrides cannot be loaded from a custom path

    XMLWordPrintable

Details

    • Bug
    • Status: Reported
    • P3: Somewhat important
    • Resolution: Unresolved
    • 5.15.2
    • None
    • GamePad
    • None
    • All

    Description

      Because the QGamepadManagerPrivate() constructor calls `loadBackend()`, there is no chance for the user to set the path to their button configuration before the backend is initialized (where `readSettings()` is called), leading to a catch-22. This effectively makes the `setSettingsFile()` function only useful for saving button overrides, but not loading them.

       

      Something like the attached patch could be used to get around the issue, where the user is forced to call an `init()` function first which can optionally take a settings file path as an argument. However, this still does not solve a larger issue that the button overrides cannot be specified per device ID, in the case of multiple controllers that need their own button overrides.

      Attachments

        1. gamepad.patch
          2 kB
          Brad Parker
        For Gerrit Dashboard: QTBUG-91541
        # Subject Branch Project Status CR V

        Activity

          People

            janichol Andy Nichols
            bparker Brad Parker
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change