[Qt-interest] Loading Qt Shared from DLL

hugh hdixon at bigpond.net.au
Wed Aug 26 10:05:09 CEST 2009


On Wed, 26 Aug 2009 06:20:18 am Finley Lee wrote:
> I'm creating a Photoshop plug-in on the Windows platform which I'd like
> to use Qt with.  The plug-in is a DLL which is installed in a different
> folder from the application that loads it.  I would like to use the
> shared library version of Qt, but I can't figure out how to get my
> plug-in to load the Qt DLLs when they are installed in the same folder
> as my plug-in.
>
>
>
> I could put the Qt DLLs in Photoshop's application folder, in the system
> directory, or the Windows directory, but this seems like an invitation
> for them to be overwritten by an installer for another product.
>
>
>
> Is there a way to have the Qt DLLs get loaded from my plug-ins folder,
> or will I need to use the static version of Qt?
>

Am I right in thinking this is a windows only problem?
I'm guessing your plug-in won't load because the qt dll is not available.
In this case it is hard to do anything from your code.
As part of your installer, can you add your qt directory to the %PATH% ?

I tend to think Marco's suggestion is worth investigating but I am tempted to 
think static linking (which I normally would not consider)  may be the best 
option.

Hugh

>
>
> Thanks!
>
>
>
> -Finley




More information about the Qt-interest-old mailing list