Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Declaring dependencies in QML plugins

Declaring dependencies in QML plugins

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 1.3k Views 1 Watching
  • 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.
  • I Offline
    I Offline
    IceCreamWarrior
    wrote on last edited by
    #1

    Hi,

    Is it possible to have a (C++) QML plugin declare a dependency on another plugin? I.e. I want to be able to use a type that is defined in plugin A to be used by plugin B, both written in C++. How do I do that?

    Thanks,

    Burk.

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lakshmi
      wrote on last edited by
      #2

      Hi,

      I guess you need to use "import Plugin name". For more details go through the link http://qt-project.org/doc/qt-4.8/qml-extending.html

      1 Reply Last reply
      0
      • I Offline
        I Offline
        IceCreamWarrior
        wrote on last edited by
        #3

        I am aware of the import statement from QML. However, my plugin has no QML component; it is C++ only. So what I'm asking is how to achieve the effect of "import B" in C++.

        Burk.

        1 Reply Last reply
        1

        • Login

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