I have a plugin application (.DLL) that links dynamically to multiple other QT DLLs. When the plugin is loaded in the third party software, it fails to find the dependencies which are located exactly in the same folder as the plugin DLL. The structure looks like this:
myplugin.dll
platforms\
qwindowsd.dll
QtQml\
qmlplugind.dll
...
The executable of the software that loads the Plugin is installed under C:/Program Files/MySoftware/Application.exe
Weirdly enough, when I copy the contents of my packaged plugin (dlls and its dependencies) directly into the software's executable directory, next to the executable, it works like a charm, and the plugin is able to find all its DLLs in that directory. So my guess is the DLL lookup isn’t appropriate?
This might relate to this: Search path for a DLL referenced by a plug-in DLL but the solution to load every QT dll explicitly seems wrong.
Any help on that matter would be appreciated. Thanks
EDIT: I tried to put the path to where the DLLs are explicitly in the PATH variable without success.