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

QML extension plugin is unusable if registerTypes() doesn't register any types

    XMLWordPrintable

Details

    Description

      If no types are registered to the given uri in QQmlExtensionPlugin::registerTypes(), QML cannot import the plugin. Error message:

      module "MyModule" is not installed

      This prevents one from creating a plugin that places data to the root context of an engine only.

      Work-around:

      qmlRegisterType<QObject>(uri, 1, 0, "__QTBUG_WORKAROUND__");

      Attachments

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

        Activity

          People

            aalpert Alan Alpert
            topiolli Topi Mäenpää
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes