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. Trying to figure out the Plugin system

Trying to figure out the Plugin system

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 554 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.
  • SmokeyTheBanditS Offline
    SmokeyTheBanditS Offline
    SmokeyTheBandit
    wrote on last edited by
    #1

    I’ve currently been working on a UI framework, in which all its functionality is loaded through plugins. The basic framework provides the a windowed shell, some custom widgets, a C++ API to talk to the cloud, and some other miscellaneous functionality.

    For the plugins, I created a baseclass called ‘Plugin’, which is derived from Qobject. When instantiating this class, one must pas a few references to its constructor (which are all references to Qobjects). These pointers will be provided by the framework, when it loads the plugin.

    When someone creates a plugin, they must derive their interface object from Plugin, they can use the references that were passed by the framework to interact with the application. The must be able to do operations to adding widgets to the Shell, or communicate with the cloud. Preferable they must also be able to communicate with other plugins, I don’t think this is possible/easy through C++ code (but correct me if I’m wrong :) ), but maybe through a messaging system.

    I’ve finished most of the framework. I’m now at the point where I want to see some plugin action. I’ve already tried to come up with a good way to implement this kind of behavior. Imho, the Qt documentation is a bit lacking in this subject, in that it only describes some basic implementations. I’m having a hard time figuring out how to proceed. To me, this doesn’t seem like a trivial thing to do to. Is there anyone with some experience with building something such as this? Any advice would be greatly appreciated :). Thanks in advance !

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      If you need some ideas/inspiration, take a look at Qt Creator's source code. It's a complex plugin based application.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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