I have a Qt application that allows custom plugins (loaded with QPluginLoader
), and these plugins can implement some interfaces, and declare with the Q_INTERFACES()
macro.
If you look at Qt's documentation linked below, I'm talking about the "low-level" API: http://doc.qt.io/qt-5/plugins-howto.html
Now, this is my question: after I load a plugin with QPluginLoader
, is there a way to enumerate all the interfaces it implements? Basically, is there a way to enumerate what the plugin declares in the Q_INTERFACES()
macro from the main app loading the plugin?
The application currently works with both Qt4 and Qt5, but a solution that works only with Qt5 would be acceptable as well.