Connecting signal to slot between classes in PyQt
Aim is to connect a signal of the top class TicTacToe with the QMainWindow class. It throws an error: TicTacToe cannot be converted to PyQt5.QtCore.QObject in this context #!/usr/bin/env python from PyQt5.QtCore import (QLineF, QPointF, QRectF, pyqtSignal) from PyQt5.QtGui import (QIcon, QBrush, QColor, QPainter, QPixmap) from PyQt5.QtWidgets import (QAction, QMainWindow, QApplication, QGraphicsView, QGraphicsScene, QGraphicsItem, QGridLayout, QVBoxLayout, QHBoxLayout, QLabel, QLineEdit, QPushButton) class TicTacToe(QGraphicsItem): def __init__(self): super(TicTacToe, self).__init__() def