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

Loading the platform plugin pulls in all other plugins too

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.0.0
    • 5.0.0
    • GUI: Window management
    • None
    • Change-Id: I03e4196ddfed07d0fe94acca40d5de8a6ce7f920

    Description

      When the platform integration gets created or its keys queried in QPlatformIntegrationFactory::create() and ::keys(), QCoreApplication::addLibraryPath() gets called. This call will invoke QFactoryLoader::update(), pulling in all the other available plugins too. This is obviously undesirable - the application may not either need any of the plugins, or the plugin might get loaded too early when the application is not fully constructed yet.

      The problem is either in the platform integration side, as it calls addLibraryPath(), or in QFactoryLoader itself, because it probably shouldn't start loading the plugins when you add a library path to it.

      Attachments

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

        Activity

          People

            laknoll Lars Knoll
            holmsted Lasse Holmstedt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes