Qt-jambi-interest Archive, May 2007
javaws and Qt Plugins
Message 1 in thread
Hi,
I would like to use the different imageformats provided as Qt plugins
in Qt (like jpeg, tiff etc) in an application, which is started via javaws.
I found that there is a environment variable QT_PLUGIN_PATH which has
to be set to the proper directory where the plugins reside. This
works fine if I start the application locally. But
how is this done if java webstart ist used for deployment? Any hints
are welcome ...
Stephan
Message 2 in thread
Stephan Egli wrote:
> Hi,
>
> I would like to use the different imageformats provided as Qt plugins
> in Qt (like jpeg, tiff etc) in an application, which is started via javaws.
>
> I found that there is a environment variable QT_PLUGIN_PATH which has
> to be set to the proper directory where the plugins reside. This
> works fine if I start the application locally. But
> how is this done if java webstart ist used for deployment? Any hints
> are welcome ...
>
> Stephan
>
Hi Stephan,
In the current release its not possible to load plugins from WebStart,
unless you do some tricks yourself... You can for instance use
QApplication.addLibraryPath() to specify a locations in addition to
QT_PLUGIN_PATH.
For the final release, we've added some functionality to automate this.
You can then specify a system property "com.trolltech.qt.pluginjars"
which contains .jar files with plugins in them. When
QApplication.initialize() is called, we'll then be able to load these
plugins. You should be able to see this in the webstart when we release.
best regards,
Gunnar