Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 3

Qt-interest Archive, January 2007
using a shared library from a plugin


Message 1 in thread

Hi,

in an application I want to use custom Qt-Plugins. 
There is some common code for every plugin to be used which I decided to put 
in a separate library.
I've got a working solution for linux and mac osx but can't get it working on 
windows.
I tried various things from exporting the class to analyse what is going on 
with the Dependancy Walker mentioned in the Trolltech's documentation and the 
listdlls tool from sysinternals.
The example attached compiles fine but fails to load the plugins.
Every plugin dll is dependant from another dll which is loaded from the main 
program.
But for some reason on windows the QtPluginLoader decides that it isn't a 
valid plugin.

Can anyone shed some light on this where I'm going wrong?

Thanks in advance!

Meinhard

P.S.
There is a thread on the QtCenter explaining how the solution was found:
http://www.qtcentre.org/forum/f-qt-programming-2/t-casting-result-of-qwidgetstack-currentwidget-5037.html

Attachment:

Attachment: cast2c.zip
Description: Zip archive