Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. qmlplugindump, qmldir, multiple plugins registering types to the same namespace.
Forum Updated to NodeBB v4.3 + New Features

qmlplugindump, qmldir, multiple plugins registering types to the same namespace.

Scheduled Pinned Locked Moved Qt Creator and other tools
1 Posts 1 Posters 717 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bnogal
    wrote on last edited by
    #1

    The documentation says:
    http://doc.qt.io/qt-5/qtqml-modules-qmldir.html
    "Zero or more C++ plugin declarations may exist in the qmldir file, however since plugin loading is a relatively expensive operation, clients are advised to specify at most a single plugin."

    I have multiple plugins registering types than share same base clases.
    Base classes are registered in "root"
    inside root/tools/ , i have multiple tools, tool1,tool2, tool3

    i was wondering if it would be possible to create a qmldir, than includes all the plugins, and makes them accessible from root.tool
    if not, why in qmldir you can specify multiple plugins!, if you can only use the namespace specified on the qmldir, and you cant register new types if the "namespace has already been used for type registration" by the first plugin you indicated in the qmldir file.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved