Qt plugins: is there a way to list all interfaces a plugin implements?
<p>I have a Qt application that allows custom plugins (loaded with <code>QPluginLoader</code>), and these plugins can implement some interfaces, and declare with the <code>Q_INTERFACES()</code> macro.</p>

<p>If you look at Qt's documentation linked below, I'm talking about the "low-level" API:
<a href="http://doc.qt.io/qt-5/plugins-howto.html" rel="nofollow">http://doc.qt.io/qt-5/plugins-howto.html</a></p>

<p><strong>Now, this is my question</strong>: after I load a plugin with <code>QPluginLoader</code>, is there a way to enumerate all the interfaces it implements? Basically, is there a way to enumerate what the plugin declares in the <code>Q_INTERFACES()</code> macro from the main app loading the plugin?</p>

<p>The application currently works with both Qt4 and Qt5, but a solution that works only with Qt5 would be acceptable as well.</p>