title: Load Animated gif file using QMovie in Ubuntu
body: <p>I am new to Ubuntu &amp; Qt. I need to show busy status for other long operations. So, I was just trying to use waiting animation gif files to load instead using Progress bars.</p>
  
  <p>I am using Eclipse Editor for Qt project.
  Trolltech/../imageformat folder contains <code>libqgif.so</code> and <code>libqgif.so.debug</code>. I have copied these files in my debug folder too.</p>
  
  <p><code>loader.gif</code> is added in qrc file and kept in <code>/Resources</code> folder</p>
  
  <p>IN MainWindow class I have added label and after setupUi(this) been called I call my <code>ShowMovie()</code> function as below:</p>
  
  <pre><code>ShowMovie() {
  
       QMovie *movie = NULL;
       movie  = new QMovie(":/Resources/loader.gif");
       if(movie-&gt;isValid()) {
           ui.label_3-&gt;setMovie(movie);
           movie-&gt;start();
       }
       else
           qDebug()&lt;&lt;"Movie is Invalid";
       qDebug()&lt;&lt;QImageReader::supportedImageFormats ();
  }
  </code></pre>
  
  <p>Always isValid() function returns false &amp; I got message that Movie is Invalid.
  Last qDebug() returns </p>
  
  <pre><code> ("bmp", "gif", "ico", "jpeg", "jpg", "mng", "pbm", "pgm", "png", "ppm",
    "svg", "svgz", "tif", "tiff", "xbm", "xpm") 
  </code></pre>
  
  <p>i.e means gif support is available. </p>
  
  <p>I have tried to call ShowMovie() function before loading Main UI and/or on button clicked. Both fails.</p>
  
  <p>Provide help on what is to be corrected.
  Thank you.</p>