title: QLabel() won't load a pixmap if it is a JPG image
body: <p>I am trying to have a <code>QLabel()</code> display a <code>pixmap</code> JPG image from a file (which can't be in a resource file since it is downloaded from the web), but I am having problems loading it. The code is fairly simple:</p>
  
  <pre><code>label = QLabel()
  label.setPixmap(QPixmap("image.jpg"))
  </code></pre>
  
  <p>It works with <code>PNG</code> files, but it doesn't work with <code>JPG</code> files. I have Googled quite a bit and found that I needed to place the <code>"imageformats"</code> folder in the same folder where my script is located. However, even after doing this (and yes, <code>qjpeg4.dll</code> and others are there), it still doesn't work. I've also tried doing</p>
  
  <pre><code>path = r"C:\Users\Deusdies\Documents\Work\myapp\imageformats"
  app.addLibraryPath(path)
  </code></pre>
  
  <p>but that didn't help either.</p>
  
  <p>Again, it loads <code>PNGs</code> just fine, but it won't load <code>JPGs</code>. I've also noticed even before that it won't load <code>ICO</code> either, but I thought of it as an unrelated issue - however it doesn't seem that way now.</p>
  
  <p>It is worth noting that the application is not converted to an <code>.exe</code> at this point - it is ran through <code>python.exe</code> interpreter via <code>PowerShell</code>.</p>
  
  <p>My development environment is Windows 7 x64, PySide 1.1.0</p>
  
  <p>How can I solve this problem?</p>