PDA

View Full Version : qtextbrowser and imageformats plugins



bred
21st December 2010, 10:35
In my code I'm using a qTextBrowser for showing some image sored on the HD.
My code works correctly.

But there's no way to locate the plugin: qjpeg4

In the main function I've added this code:


qApp->addLibraryPath( qApp->applicationDirPath() ) ;

To set a search path for the plugins, but it doesn't work.
Clearly I've copied the qjpeg4.dll to the app directory.

Where's the problem?

high_flyer
21st December 2010, 10:50
If you are in a debug build, then the debug version (with 'd' in the end) is used.

bred
21st December 2010, 11:00
If you are in a debug build, then the debug version (with 'd' in the end) is used.

I'm in the release build and I'm testing the installer on a virtual machine.

Do you mind that for the debug build we need to copy the qjpeg4d.dll and for the release we need the qjpeg4.dll (without 'd')?

high_flyer
21st December 2010, 11:04
Yes - release libs for release, debug libs for debug.

bred
21st December 2010, 12:37
Yes - release libs for release, debug libs for debug.

Sorry but it doesn't work.
I've copied everything in the app directory without any result.

bred
21st December 2010, 17:54
fixed
tnx.