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

Id conflict in QQuickImageProvider when Qt Multimedia module is imported

XMLWordPrintable

    • Linux/X11, Windows
    • ab4c0ec43 (dev)

      When registering a custom QQuickImageProvider with the id 'camera' in the QML engine, an unexpected conflict arises if the Qt Multimedia module is imported in the QML file. This is due to the QMultimediaQuickModule internally registering an image provider with the same id 'camera' during its initialization (see multimedia_plugin.cpp).

      As a result, when a custom image provider is registered with the 'camera' id, it gets destroyed as soon as Qt Multimedia is imported in the QML code, causing the application to crash. As long as Qt Multimiedia is not imported or different id is provided, everything is working as expected.

      This behavior is undocumented and can cause confusion for developers integrating custom image providers with 'camera' id.

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

            docteam Qt Documentation Team
            tiheikka Titta Heikkala
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes