I am trying to connect a signal from a created object and am getting an error. Here is a simplified version of my code:
class OverviewWindow(QMainWindow):
QGraphicsItem does not inherit from QObject, therefore it is not possible to emit a signal from an instance of QGraphicsItem. You can solve this by subclassing QGraphicsObject instead of QGraphicsItem: http://doc.qt.io/qt-5/qgraphicsobject.html.
QGraphicsItem
QObject
QGraphicsObject