title: pyqt jpeg support not working in bundled form
body: <p>To enable jpeg support in a PyQT application, you have to manually include the <code>qjpeg4.dll</code>.<br>
  It works fine when the dll and pyd file are not bundled together in the final exe. For example
  with py2exe you can do the following :</p>
  
  <pre><code>DATA=[('imageformats',['C:\\Python26/Lib/site-packages/PyQt4/plugins/imageformats/qjpeg4.dll'])]
  setup(console=[{"script":"cycotic.py"}], 
      data_files = DATA,
      options={"py2exe":{
          "includes":["sip"],
          "excludes":MODULE_EXCLUDES,
          "bundle_files":3,
          "compressed":False,
          "xref":True}}, 
      zipfile=None)
  </code></pre>
  
  <p>However, if you do the same thing, and you bundle the dll in the exe (using <code>"bundle_files":1</code>), it fails with the following message :</p>
  
  <pre><code>QObject::moveToThread: Current thread (0x3a16608) is not the object's thread (0x
  2dddaf8).
  Cannot move to target thread (0x2dddaf8)
  
  QObject::moveToThread: Current thread (0x3a16608) is not the object's thread (0x
  2dddaf8).
  Cannot move to target thread (0x2dddaf8)
  
  QObject::moveToThread: Current thread (0x3a16608) is not the object's thread (0x
  2dddaf8).
  Cannot move to target thread (0x2dddaf8)
  
  QPainter::begin: Paint device returned engine == 0, type: 3
  QPainter::end: Painter not active, aborted
  QPixmap::scaled: Pixmap is a null pixmap
  </code></pre>
  
  <p>How can I bundle the application properly ?</p>