[Qt-interest] QPluginLoader not loading plugin just by name.

Pritam Ghanghas pritam_ghanghas at infosys.com
Wed Sep 29 17:58:41 CEST 2010


Hi

Say I have a plugin named "myplugin.so" in some dir on my filessystem
and that dir is added to LD_LIBRARY_PATH.

Shouldn't the following code work?

QPluginLoader loader("myplugin.so");
loader.instance(); 

Though the documentation doesn't say anything like that but isn't it a 
desirable feature. QLibrary does this.

if I give proper filesystem path(relative or absolute), it works fine.

Any other way to do it except for working searching through
LD_LIBRARY_PATH variable myself.



--
Thanks,
Pritam






More information about the Qt-interest-old mailing list