View Full Version : Full path and filename of a Qt Plugin at runtime
be-noix
30th July 2011, 18:01
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
masterbraind
5th August 2011, 14:21
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.
be-noix
8th August 2011, 15:38
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
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.