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

Button overrides cannot be loaded from a custom path

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.15.2
    • Fix Version/s: None
    • Component/s: GamePad
    • Labels:
      None
    • Platform/s:
      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

        For Gerrit Dashboard: QTBUG-91541
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            janichol Andy Nichols
            Reporter:
            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