PDA

View Full Version : Read TIFF images. Plugin using QImageIOHandler?



tarod
21st February 2014, 14:51
Hello,

Qt does not support TIFF images. That's strange for me, but it's ok.

I think I need to implement a plugin using QImageIOPlugin and QImageIOHandler, that's correct?

Could please anyone tell me if there is any example to learn about how to code this kind of plugins?

Thanks in advance.

anda_skoa
21st February 2014, 18:19
Maybe there are different formats called TIFF, but Qt does support at least one of them
http://qt-project.org/doc/qt-4.8/qimage.html#reading-and-writing-image-files

Cheers,
_

tarod
22nd February 2014, 11:38
Maybe there are different formats called TIFF, but Qt does support at least one of them
http://qt-project.org/doc/qt-4.8/qimage.html#reading-and-writing-image-files

Cheers,
_

Uhm. I thought Qt didn't support TIFF because in my assistant doesn't appear it. My version is 4.2.3, and due to the project we're working we cannot upgrade it.

So to create a plugin, what do we need? QImageIOPlugin and QImageIOHandler? Any examples on the web?

Thanks.

Added after 6 minutes:

I've found valuable information on this site:

https://qt.gitorious.org/qt/qtimageformats/source/37e34e1f363582e2ccfdfb059251475242b5697f:src/plugins/imageformats/tiff

stampede
22nd February 2014, 11:41
Maybe this one : Writing a Qt Image Plugin (http://doc.qt.digia.com/qq/qq17-imageio.html)
You can always have a look at plugin implementations that comes with Qt sources in "src/plugins/imageformats".

tarod
24th February 2014, 11:20
Maybe this one : Writing a Qt Image Plugin (http://doc.qt.digia.com/qq/qq17-imageio.html)
You can always have a look at plugin implementations that comes with Qt sources in "src/plugins/imageformats".

Thank you so much!