title: Can't load/save JPG image in Qt
body: <p>I can't load/save <code>jpg</code> image in Qt. I checked the <code>imageformat</code> folder in plugins folder and I found the <code>dll/lib</code> files related to this extension.</p>
  
  <p>Here's the code I'm using:</p>
  
  <pre><code>void loadImages(){
  
      QImage image;
      QString folderName = "C:\\img-src\\";
      bool isLoaded;
      for(int i=1;i&lt;3;i++){
          QString fileName = folderName + QString::number(i) + ".jpg";
          isLoaded = image.load(fileName,"JPG");
          if(isLoaded){
              qDebug() &lt;&lt; "loaded";
          }else{
              qDebug() &lt;&lt; "not loaded";
          }
  
          //Rest of the code
  
          }
  
  
  
  }
  </code></pre>