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

Plugin Type has broken "required" property

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.2.0
    • Location
    • None

    Description

      The documentation for the Plugin type states the following example:

      Plugin {
            id: plugin
            preferred: ["here", "osm"]
            required: Plugin.AnyMappingFeatures | Plugin.AnyGeocodingFeatures
        }
      

      This will create the following error message:

      Unable to assign int to QDeclarativeGeoServiceProviderRequirements*

      This API property has existed since 5.0 and 5.10 has even added a setter function for it. It seems to have never worked. I have a vague collection of this being conceived as usable when the user doesn't care which plugin to use as long as it has the right feature set.

      In reality this was never used as users almost always select a specific plugin because they require a PLuginParameter set to set the app id/keys. A random selection simply makes no sense. The fact that I cannot find a single bug report about this break further underlines the missing usage.

      I suggest to remove the "required" and "preferred" property from the Plugin type in Qt 6.

      Attachments

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

        Activity

          People

            paangele Paolo Angelelli
            ablasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes