PyQt5 - Signal : pyqtSignal no method connect
<p>following example in this doc found on <a href="http://pyqt.sourceforge.net/Docs/PyQt5/signals_slots.html#PyQt5.QtCore.pyqtSlot" rel="noreferrer">sourceforge</a>
I faced an error.</p>

<pre><code>from PyQt5.QtCore import pyqtSignal, pyqtSlot

 def setSignal():        
     signal = pyqtSignal()
     signal.connect(self.myAction)

 @QtCore.pyqtSlot()
 def myAction():
     print("signal triggered")
</code></pre>

<p>results in</p>

<pre><code>AttributeError: 'PyQt5.QtCore.pyqtSignal' object has no attribute 'connect'
</code></pre>