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

Static plugin loaded twice

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.2.8, 6.5.1, 6.6.0
    • 6.2.1, 6.2.3, 6.3.0
    • Core: Plugins
    • None
    • MSVC17 (2019), Cmake 3.22.2
    • Windows
    • 2f226336a (dev), 9241a0dd4 (tqtc/lts-6.2), b87883951 (6.5)

    Description

      Whilst migrating an existing Qt 5 application over to 6, I've encountered a problem with the plugin interface. This problem can easily be reproduced by building and running the Plug & Paint example (in widgets\tools\plugandpaint).

      In the example, both a static and dynamic plugin are built and loaded in the application. In Qt 5 the behavior is correct and the plugins are only loaded once. In Qt 6 however, the static plugin is loaded twice, which is unwanted.

      A workaround could be to implementing a filter on theĀ 
      `QPluginLoader::staticInstances();` results.

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            lexn Lex Nicolaes
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes