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

QFactoryLoader::instance(int index) does not bother looking for static plugins

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 5.0.0
    • Core: Plugins
    • None
    • all
    • 1767e21123a6b3d9bfa71027ad42cb16b43f7b4f

    Description

      This problem means I am unable to package static plugins such as those loaded by QMediaPluginLoader

      I understand that most of the time we just use shared plugins, but then QFactoryLoader is inconsistent.

      QFactoryLoader::metaData() will return a list of metadata for both static and shared plugins.

      But QFactoryLoader::instance(int index) will only ever load shared plugins (it does not look at QLibraryPrivate::staticPlugins() list)

      I have attached my fix for this method

      Attachments

        1. fix.cpp
          1 kB
          will barbour
        For Gerrit Dashboard: QTBUG-25274
        # Subject Branch Project Status CR V

        Activity

          People

            laknoll Lars Knoll
            barbourwill will barbour
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes