Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Link a plugin to a plugin
Forum Updated to NodeBB v4.3 + New Features

Link a plugin to a plugin

Scheduled Pinned Locked Moved General and Desktop
7 Posts 4 Posters 4.4k 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.
  • G Offline
    G Offline
    geronik
    wrote on last edited by
    #1

    Hello all

    I have created an application and two plugins that can be loaded successfully in run time.
    Though I need to link the plugin one another.
    Is this possible?
    Thanks in advance.

    1 Reply Last reply
    0
    • F Offline
      F Offline
      Franzk
      wrote on last edited by
      #2

      Have a look at how plug-ins are managed in Qt Creator. They have dependencies on plug-ins (actually, everything is a plug-in there).

      "Horse sense is the thing a horse has which keeps it from betting on people." -- W.C. Fields

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • G Offline
        G Offline
        geronik
        wrote on last edited by
        #3

        Thanks for the reply.
        Actually I think that in Qt Creator, plug-ins are not plug-ins in the context of making plug-ins that can be loaded dynamically in a Qt application, but rather libraries which look like plug-ins, because of the fact that are loaded dynamically from the Qt Creator application. Correct me if I am wrong.

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tobias.hunger
          wrote on last edited by
          #4

          Technically plugins are just dynamic libraries in the first place. The difference is just in the mechanism by which they are loaded. Dynamic libraries are more or less automatically loaded by the system's loader process when the application is loaded into memory while plugins are actually loaded later, whenever the application decides it needs its plugins.

          So Qt Creator has real plugins:-)

          Having a plugin depend on another plugin is a common thing in a plugin based architecture. Usually that is resolved by describing dependencies in some way so that the application makes sure it loads all plugins in an order where all dependent plugins are loaded before the plugin depending on them gets loaded. This way the whole plugin-loading mechanism can stay inside the application. If you had plugins loading other plugins you would need to have the plugin loading code everywhere, which is of course harder to maintain.

          1 Reply Last reply
          0
          • G Offline
            G Offline
            geronik
            wrote on last edited by
            #5

            We are trying to solve the inter communication issue between different plug-ins. At this far we concluded that signal and slots is not an option, and direct callbacks seem to be the better way of doing this, as the main application is a plug-in agnostic object. Anyway thank you all for your responses.

            1 Reply Last reply
            0
            • I Offline
              I Offline
              Immii
              wrote on last edited by
              #6

              Can you please point me to some example, looks like plugin to plugin should make one of our job much easier

              1 Reply Last reply
              0
              • G Offline
                G Offline
                geronik
                wrote on last edited by
                #7

                In our case, we have different GUI (widgets, etc..), that are being created by different plug-ins, which are being loaded by the Qt application. We would like signals and slots, in order to keep these widgets updated.

                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