PDA

View Full Version : TIFF image Format



dima
13th September 2010, 11:59
Hi ,
On my PC I have Qt 4.4.3 , Visual Studio 2005 and Qt Visual Studio integration 1.4.3.

In my project I need to display TIFF images, and it working fine!!!!!. I didn't insert any plugin declaration in code. (I just pass to QPixmap image file name and image format).

When project run on PC with no QT installed , only QT libs in run time directory I am failed to load TIFF images .

Can anyone help with that !!!

tbscope
13th September 2010, 12:03
Copy all your Qt plugins too to the target PC.
Check the documentation:
http://doc.qt.nokia.com/latest/deployment.html

dima
13th September 2010, 12:09
I didn't added qtiff.lib in vcproj on my DEV PC , and it still working .

tbscope
13th September 2010, 12:20
Qt finds the plugins by itself.

But they need to be there.

dima
13th September 2010, 12:37
I coped complete QT directory into target PC , added qtiffd4.lib into vsproj , but still I can open only PNG files.

^NyAw^
13th September 2010, 12:47
Hi,

Have you copied the "plugins" directory inside the target directory?

YourAppDirectory
|----your files(exe, ...)
|----plugins
|----imageformats
|----------------qt plugins dlls(like "qtiff4.dll")

dima
13th September 2010, 13:03
I have 2 PC :
1. Dev1 PC with full QT installation. (working fine , QT finds plugins).
2. Dev2 PC same as Dev1 PC ( same visual studio.. ) no QT installed ( QT used as external library ) -> can't find plugins.

In both PC there is same vsproj file and env variebles.

borisbn
13th September 2010, 13:42
You have to put qtiff4.dll in folder imageformats, that should be a subfolder of your application folder as ^NyAw^ said.
And by the way, QT = Quick Time, and Qt = this nice library :)