Issue with QNetworkInformation

Detlev Offenbach detlev at
Sat Sep 4 18:50:39 BST 2021


I am facing an issue with QNetworkInformation. Trying to connect to the 
signal 'reachabilityChanged' fails with an error. Please see below for a 
console example. According to the error printed, no such signal exists 
but looking at the sip file shows, that it should. Please help me solve it.


 >>> from PyQt6.QtCore import pyqtSlot
 >>> from PyQt6.QtNetwork import QNetworkInformation
 >>> @pyqtSlot(QNetworkInformation.Reachability)
... def reachabilityChanged(reach):
...  print(reach)
 >>> QNetworkInformation.load(QNetworkInformation.Feature.Reachability)
 >>> QNetworkInformation.instance().reachability()
<Reachability.Online: 4>
StdErr: qt.core.qobject.connect: QObject::connect: No such signal 
neptun/12848/main: Traceback (innermost last):
   File "<stdin>", line 1, in <module>
TypeError: connect() failed between 
reachabilityChanged(QNetworkInformation::Reachability) and unislot()



Detlev Offenbach
detlev at

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the PyQt mailing list