<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    quick follow up:<br>
    I am now writing the files to a temp directory and only passing the
    respective path via the signal, but I'm still curious how I would do
    this without writing anything to disk.<br>
    <br>
    Cheers,<br>
    frank<br>
    <br>
    <div class="moz-cite-prefix">On 10/22/2017 09:18 PM, Frank Rueter |
      OHUfx wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:aea404d9-5edc-f98d-f10f-098d3a830bc2@ohufx.com">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      Hi,<br>
      <br>
      I am downloading a few images in a separate thread using
      QRunnable.<br>
      To download I am just using urllib2.urlopen() like this:<br>
      <br>
      [...]<br>
          def run(self):<br>
              imageData = urllib2.urlopen(self.url).read()<br>
              print 'emitted:', imageData<br>
              self.signals.receivedData.emit(imageData) # this signal is
      declared like this: QtCore.Signal(str)<br>
      <br>
      <br>
      However, the receiving slot is receiving nothing:<br>
      <br>
          def setPixmap(self, imageData):<br>
              print 'received:', imageData<br>
              pixmap = QtGui.QPixmap()<br>
              pixmap.loadFromData(imageData)<br>
              self.data['pixmap'] = pixmap<br>
      <br>
      <br>
      I guess this is too naive an approach to download image data in a
      separate thread?!<br>
      <br>
      How can I fix this please?<br>
      <br>
      Cheers,<br>
      frank<br>
      <br>
      <br>
      <div class="moz-signature">-- <br>
        <table style="width: 524px; height: 58px;" border="0">
          <tbody>
            <tr>
              <td style="text-align: center;"><a
                  href="http://www.ohufx.com" moz-do-not-send="true"><img
                    src="http://ohufx.com/images/ohufxLogo_50x50.png"
                    alt="ohufxLogo 50x50" moz-do-not-send="true"></a></td>
              <td style="text-align: center;"><strong><span
                    style="font-size: 10pt;"><a
                      href="http://ohufx.com/index.php/vfx-compositing"
                      moz-do-not-send="true">vfx compositing</a></span>
                  | <span style="font-size: 10pt;"><strong><a
                        href="http://ohufx.com/index.php/vfx-customising"
                        moz-do-not-send="true">workflow customisation
                        and consulting</a></strong> </span> </strong></td>
            </tr>
          </tbody>
        </table>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
PySide mailing list
<a class="moz-txt-link-abbreviated" href="mailto:PySide@qt-project.org">PySide@qt-project.org</a>
<a class="moz-txt-link-freetext" href="http://lists.qt-project.org/mailman/listinfo/pyside">http://lists.qt-project.org/mailman/listinfo/pyside</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>