[PyQt] QNetworkReply pyQt
    Christopher Probst 
    christop.probst at gmail.com
       
    Wed May  3 17:10:25 BST 2017
    
    
  
So I tried this self-contained example from the documentation, the finished
signal is never emitted. What am I doing wrong? I am using pyQt5 and python
3.5.
import sys
from PyQt5.QtWidgets import QApplication
from PyQt5.QtNetwork import *
from PyQt5.QtCore import *
from downloadmgrWidget import DownloadManagerWidget
class DebugginClass(QObject):
    def __init__(self, parent=None):
        QObject(parent)
    @pyqtSlot()
    def debugging(self):
        print("Signal finished emitted")
if __name__ == "__main__":
    app = QApplication(sys.argv)
    debugClass = DebugginClass()
    manager = QNetworkAccessManager()
    manager.finished['QNetworkReply*'].connect(debugClass.debugging)
    manager.get(QNetworkRequest(QUrl("http://qt.nokia.com")));
    sys.exit(app.exec_())
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20170503/e85c4387/attachment-0001.html>
    
    
More information about the PyQt
mailing list