<div dir="ltr">I am going to send the example again without a dependency to my project. For some odd reason the finished signal is never received.<div><br></div><div><pre style="white-space:pre-wrap;color:rgb(0,0,0)">import sys
from PyQt5.QtWidgets import QApplication
from PyQt5.QtNetwork import *
from PyQt5.QtCore import * </pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">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("<a href="http://qt.nokia.com/">http://qt.nokia.com</a>")));
sys.exit(app.exec_())</pre></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 3, 2017 at 12:10 PM, Christopher Probst <span dir="ltr"><<a href="mailto:christop.probst@gmail.com" target="_blank">christop.probst@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra">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.</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote"><span style="font-family:"dejavu sans mono";font-size:11.4pt;color:rgb(0,0,128);font-weight:bold">import </span><span style="color:rgb(0,0,0);font-family:"dejavu sans mono";font-size:11.4pt">sys</span></div><pre style="color:rgb(0,0,0);font-family:"dejavu sans mono";font-size:11.4pt"><span style="color:rgb(0,0,128);font-weight:bold">from </span>PyQt5.QtWidgets <span style="color:rgb(0,0,128);font-weight:bold">import </span>QApplication<br><span style="color:rgb(0,0,128);font-weight:bold">from </span>PyQt5.QtNetwork <span style="color:rgb(0,0,128);font-weight:bold">import </span>*<br><span style="color:rgb(0,0,128);font-weight:bold">from </span>PyQt5.QtCore <span style="color:rgb(0,0,128);font-weight:bold">import </span>*<br><span style="color:rgb(0,0,128);font-weight:bold">from </span>downloadmgrWidget <span style="color:rgb(0,0,128);font-weight:bold">import </span>DownloadManagerWidget<br><br><span style="color:rgb(0,0,128);font-weight:bold">class </span>DebugginClass(QObject):<br> <span style="color:rgb(0,0,128);font-weight:bold">def </span><span style="color:rgb(178,0,178)">__init__</span>(<span style="color:rgb(148,85,141)">self</span>, parent=<span style="color:rgb(0,0,128);font-weight:bold">None</span>):<br> QObject(parent)<br><br> @<span style="color:rgb(0,0,178)">pyqtSlot</span>()<br> <span style="color:rgb(0,0,128);font-weight:bold">def </span>debugging(<span style="color:rgb(148,85,141)">self</span>):<br> <span style="color:rgb(0,0,128)">print</span>(<span style="color:rgb(0,128,128);font-weight:bold">"Signal finished emitted"</span>)<br><br><br><span style="color:rgb(0,0,128);font-weight:bold">if </span>__name__ == <span style="color:rgb(0,128,128);font-weight:bold">"__main__"</span>:<br> app = QApplication(sys.argv)<br><br><br> debugClass = DebugginClass()<br> manager = QNetworkAccessManager()<br><br> manager.finished[<span style="color:rgb(0,128,128);font-weight:bold">'<wbr>QNetworkReply*'</span>].connect(<wbr>debugClass.debugging)<br> <br> manager.get(QNetworkRequest(<wbr>QUrl(<span style="color:rgb(0,128,128);font-weight:bold">"<a href="http://qt.nokia.com" target="_blank">http://qt.nokia.com</a>"</span>)));<br><br><br> sys.exit(app.exec_())<br></pre></div></div>
</blockquote></div><br></div>