[PyQt] QNetworkReply pyQt

Christopher Probst christop.probst at gmail.com
Wed May 3 15:53:37 BST 2017


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/official_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?


Thanks,
Christopher
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20170503/7b843e36/attachment.html>


More information about the PyQt mailing list