[PyQt] QNetworkReply pyQt
    Tony Arnold 
    tony.arnold at manchester.ac.uk
       
    Wed May  3 16:31:24 BST 2017
    
    
  
Chris,
On Wed, 2017-05-03 at 10:53 -0400, Christopher Probst wrote:
> 
> new to pyQt and I am stumped. I am trying to get the
> QNetworkAccessManager class to work with these lines
> class Download(QNetworkAccessManager):
> ..
> self.m_reply = self.get(QNetworkRequest(QUrl("http://download.qt.io/o
> fficial_releases/qt/5.8/5.8.0/single/qt-everywhere-opensource-src-
> 5.8.0.tar.gz")))
> 
> self.m_reply.readyRead.connect(self.debugging)
> self.m_reply.error.connect(self.debugging)
> self.m_reply.finished.connect(self.debugging)
> ..
> 
> where debugging is a slot
> @pyqtSlot()
> def debugging(self):
>     print("downloadProgress")
> 
> Problem is, it looks as if the readyRead, error or finished signal
> are never emitted. What am I doing wrong?
I would  check the value of self.m_reply.error() immediately after the
get call. It may be possible that an error can occur before the signals
get connected.
Regards,
Tony.
-- 
Tony Arnold MBCS, CITP | Senior IT Security Analyst | Directorate of IT Services | G.110, Kilburn Building | The University of Manchester | Manchester M13 9PL | T: +44 161 275 6093 | M: +44 773 330 0039
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4979 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20170503/c3d5809e/attachment.bin>
    
    
More information about the PyQt
mailing list