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,