<div dir="ltr">Had the same problem.<div><br></div><div>Solved it by creating a QImage and emitting that.</div><div><br></div><div>Cheers,</div><div>Erik</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Oct 22, 2017 at 11:19 AM, Frank Rueter | OHUfx <span dir="ltr"><<a href="mailto:frank@ohufx.com" target="_blank">frank@ohufx.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div 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<div><div class="h5"><br>
    <br>
    <div class="m_-3153164620124466339moz-cite-prefix">On 10/22/2017 09:18 PM, Frank Rueter |
      OHUfx wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div class="h5">
      
      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).<wbr>read()<br>
              print 'emitted:', imageData<br>
              self.signals.receivedData.<wbr>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="m_-3153164620124466339moz-signature">-- <br>
        <table style="width:524px;height:58px" border="0">
          <tbody>
            <tr>
              <td style="text-align:center"><a href="http://www.ohufx.com" target="_blank"><img src="http://ohufx.com/images/ohufxLogo_50x50.png" alt="ohufxLogo 50x50"></a></td>
              <td style="text-align:center"><strong><span style="font-size:10pt"><a href="http://ohufx.com/index.php/vfx-compositing" target="_blank">vfx compositing</a></span>
                  | <span style="font-size:10pt"><strong><a href="http://ohufx.com/index.php/vfx-customising" target="_blank">workflow customisation
                        and consulting</a></strong> </span> </strong></td>
            </tr>
          </tbody>
        </table>
      </div>
      <br>
      <fieldset class="m_-3153164620124466339mimeAttachmentHeader"></fieldset>
      <br>
      </div></div><pre>______________________________<wbr>_________________
PySide mailing list
<a class="m_-3153164620124466339moz-txt-link-abbreviated" href="mailto:PySide@qt-project.org" target="_blank">PySide@qt-project.org</a>
<a class="m_-3153164620124466339moz-txt-link-freetext" href="http://lists.qt-project.org/mailman/listinfo/pyside" target="_blank">http://lists.qt-project.org/<wbr>mailman/listinfo/pyside</a>
</pre>
    </blockquote>
    <br>
  </div>

<br>______________________________<wbr>_________________<br>
PySide mailing list<br>
<a href="mailto:PySide@qt-project.org">PySide@qt-project.org</a><br>
<a href="http://lists.qt-project.org/mailman/listinfo/pyside" rel="noreferrer" target="_blank">http://lists.qt-project.org/<wbr>mailman/listinfo/pyside</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><p style="font-size:12.8px;margin-bottom:0in;line-height:12.8px">
        
        
        


</p><p style="margin-bottom:0in;line-height:100%"><span style="color:rgb(0,0,0);font-family:Arial;font-size:10pt"><strong><br>ERIK JOHANSSON</strong><br>Pipeline TD<br><br><strong>GOODBYE KANSAS STUDIOS</strong><br>Rosenlundsgatan 40, 4th floor<br>118 53 Stockholm, Sweden<br><br><a href="tel:+46855699000" style="color:rgb(0,0,0);text-decoration:none" target="_blank">Ph: +46 8 556 990 00</a><br><a href="http://www.goodbyekansas.com" style="color:rgb(255,51,51);text-decoration:none" target="_blank">www.goodbyekansas.com</a> </span><span style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium"></span><br style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium"><span style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium"> </span><br style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium"></p></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div>