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. Writing own GUI application with GUI plugins
Forum Updated to NodeBB v4.3 + New Features

Writing own GUI application with GUI plugins

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

    Hi all,
    I'm trying to write an Application that support plugins. The Application itself should only load the plugins and every plugin is supposed to do its own work. Now I tried it with QPlugin and the echoPlugin example but so far i only managed to be able to return some strings. I want every plugin to have a custom GUI (maybe its own QWidget?) and every plugin should be able to use signals and slots. I thought of it kinda like the QtCreator with the Ubuntu plugin for example. It adds functionality via the left Toolbar. Now the question is does a tutorial for this exist ? Or could someone tell me how I would accomplish this ?
    If you need any code from my current try just ask.

    Thanks in advance,
    D4rthB4n3

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andreyc
      wrote on last edited by
      #2

      I don't think that there is any tutorial except the source code.
      You can take a look on QtCreator sources.

      I would create a main window with main toolbar in the main application. The plugins would take a pointer to main window and main toolbar and add their buttons to the toolbar and widgets to the main window. The plugins must run in the same thread as main application.

      1 Reply Last reply
      0
      • D Offline
        D Offline
        D4rthB4n3
        wrote on last edited by
        #3

        hm yeah that would work :D i tried it the other way around ... but that didnt do it :D thx a lot
        ps. if anyone wants finds a tutorial im still happy if you post it ;)

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

          Hi and welcome to devnet,

          The "Plug And Paint" example might also give you some ideas to go further.

          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
          0

          • Login

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