Hi guys,
I'm working on zooming options and want to read an image with tif extension. When I use an image with extension jpeg it works fine. But the image is not displayed when I use a file with extension tif.

Here is the sample code of constructor
Qt Code:
  1. myWidget::myWidget( const char* imageFileName, QWidget *parent )
  2. : QWidget( parent )
  3. {
  4. m_pm = new QPixmap( imageFileName );
  5. factorZoom = 0.30001;
  6. setMinimumSize( m_pm->width()*factorZoom, m_pm->height(), factorZoom );
  7. }
To copy to clipboard, switch view to plain text mode 
When imageFileName is "test.jpeg" program works fine and the image is viewed and zoomed.
When imageFileName is "test.tif", nothing is displayed.


When I double clik on "tif" image from outside. It says "Drawing failed" in "Windows Picture and Fax Viewer on windows Xp".

I can view the image using Irfan view. The properties of the image are as follows

Dimensions: 1110 x 1118
Type: TIF image
Size: 2.39 MB

How to display a "tif" image on a widget????

Thanks