Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- QPluginLoader pl(pluginfile);
- if (!pl.load()) {
- qDebug() << pluginfile << pl.errorString();
- }
- else {
- QObject *instance = pl.instance();
- if (!instance) {
- qDebug() << instance is NULL " << pluginfile;
- }
- else {
- qDebug() << "plugin: " << pluginfile;
- printf("address: 0x%zx\n",(intptr_t)instance);
- qDebug() << instance->objectName();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement