Writing own GUI application with GUI plugins

  • 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,

  • 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.

  • 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 ;)

  • Lifetime Qt Champion

    Hi and welcome to devnet,

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

Log in to reply