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,
D4rthB4n3 -
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.
-
Hi and welcome to devnet,
The "Plug And Paint" example might also give you some ideas to go further.