title: connect function in pyqt5 does not work
body: <p>I recently moved from <code>pyside</code> to <code>pyqt5</code> and there is a problem. I looked it up online and apparently, it already happened to people who used <code>pyqt4</code> and moved to <code>pyqt5</code>. However, it didn't really help... I tried to add <code>pyqtSignal</code> after <code>Qobject</code> but it is still not working. Please help.
  these are my code lines:</p>
  
  <pre><code>QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("accepted()"),Dialog.accept)
  QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("rejected()"), Dialog.reject)
  </code></pre>
  
  <p>and this is what appears when I run it:</p>
  
  <pre><code>AttributeError: type object 'QObject' has no attribute 'connect'
  </code></pre>