Hi,
Is there a way to know the full path of a Qt Plugin in the constructor of the plugin interface at runtime? I would like to load some files in the same directory of the dll/so.
Thanks a lot!
Benoit
Hi,
Is there a way to know the full path of a Qt Plugin in the constructor of the plugin interface at runtime? I would like to load some files in the same directory of the dll/so.
Thanks a lot!
Benoit
I was needing it to, I wasn't able to find a way. I have modified my interface to include this path in a initialize function called just before install the plugin to complete the basic steps from the constructor.
Ok thanks a lot !
What is nice with interfaces is that the constructor is called only once at the first object
creation. So I was sure to load the data only once. I guess that in my subroutine
"initialize", i will have to test whether the plugin has already been initialized or not,
to avoid multiple calls to 'initialize' and to avoid loading multiple times the data.
Thanks!
Ben
Bookmarks