title: PyQt5 connection doesn't work: item cannot be converted to PyQt5.QtCore.QObject in this context
body: <p>I am trying to connect a signal from a created object and am getting an error. Here is a simplified version of my code: </p>
  
  <pre><code>class OverviewWindow(QMainWindow):
      def __init__(self, projectClusters, users, contributorDict, userLastRevPerProj):
          QMainWindow.__init__(self)
          # Code....
  
      def createUserNodes(self):
          userNodes = {}
          nodeSpread = 50
          yPos = -400
          nodeSpan = nodeSpread + 100
          width = (len(self.usersFilt) - 1) * nodeSpan
          xPos = 0 - (width / 2)
  
          for user in self.usersFilt:
              newItem = NodeItem(xPos, yPos, self.nodeDiameter, user, True)
              newItem.nodeDoubleClicked.connect(self.dc)
              userNodes[user] = newItem
              self.graphicsScene.addItem(newItem)
              xPos += nodeSpan
  
          return userNodes
  
      @pyqtSlot(str)
      def dc(self, text):
          print(text)
  
  
  class NodeItem(QGraphicsItem):
      nodeDoubleClicked = pyqtSignal(str)
  
      def __init__(self, xPos, yPos, diameter, text, isUserNode):
          super(NodeItem, self).__init__()
          # Code...
  
      def mouseDoubleClickEvent(self, event):
          self.nodeDoubleClicked.emit(self.texts)
  </code></pre>
  
  <p>When trying to run it it give me this error: </p>
  
  <pre><code>line 84, in createUserNodes
  newItem.nodeDoubleClicked[str].connect(self.dc)
  TypeError: NodeItem cannot be converted to PyQt5.QtCore.QObject in this context
  </code></pre>
  
  <p>I have no idea what this means or how to fix it.</p>