Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Communication between plugins and pluginmanager
Hi guys, I'm creating a kind of pluginmanager and a few plugins, each plugin has a method called
loginwhich is resposible to login to a different page, but I was wondering, what is the best way to communicate between the plugin > pluginmanager > the user? For instance, when a plugin fails to login, how can I know and tell the user that the login of a specific plugin failed?
I know it will be signals and slots, but the thing is, the pluginmanager loads all the plugins using
QPluginLoadercall the method
loginof all plugins found in a loop, how would I know which plugin failed? how to connect between the plugin and the pluginmanager and the pluginmanager to the user?
Is there anyone to help me with that?
Identify each plugin properly using e.g. objetName and use signals and slots to transmit the information both between the plugin and plugin manager as well as the plugin manager and the GUI.
And please, practice some patience. Allow at least 24 hours before bumping your own thread. This forum is community driven and the people answering here don't necessarily lives in the same timezone as you.
@SGaist I'm sorry for that, it's that I posted this in a while and I went to do something else, I thought it had more time than it actually have.
You can see the time elapsed besides your pseudonym on each post.