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

QML registration does not work with custom qml static plugins

    XMLWordPrintable

Details

    • iOS/tvOS/watchOS
    • efbf8f4894b07bc039e4c32f78a00983bcd0945f (qt/qtdeclarative/dev) f9925dba66a839614fdf1f3e735265f03258f526 (qt/qtdeclarative/5.15)

    Description

      Hi, I really love the new way to register qml elements in Qt 5.15, but for my testing, I encontered an issue on iOS (and on iOS only) when creating a custom static plugin.

       

      The error is the following:

       

      QQmlApplicationEngine failed to load component
      qrc:/main.qml:4:1: static plugin for module "MyModule.Uri" with name "MyModulePlugin" cannot be loaded: Cannot protect module MyModule.Uri 1 as it was never registered
      

       

      I created the plugin as it recommended by the documentation using CONFIG+=qmltypes static and adding QML_IMPORT_NAME=MyModule.Uri

       

      As I said, it perfeclty work with a shared plugin, as tested on macOS, windows and linux, but on iOS with static plugin it does not work.

      Attachments

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

        Activity

          People

            ulherman Ulf Hermann
            jirauser37625 user-3288b (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes