Advertisement
Guest User

Untitled

a guest
Apr 18th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         QPluginLoader pl(pluginfile);
  2.         if (!pl.load()) {
  3.             qDebug() <<  pluginfile <<  pl.errorString();
  4.         }
  5.         else {
  6.             QObject *instance = pl.instance();
  7.             if (!instance) {
  8.                 qDebug() << instance is NULL " <<  pluginfile;
  9.             }
  10.             else {
  11.                 qDebug() <<  "plugin: " << pluginfile;
  12.                 printf("address: 0x%zx\n",(intptr_t)instance);
  13.                 qDebug() << instance->objectName();
  14.        }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement