If you use a custom signal, you must remember that the signal is a class variable, which must be defined in the class, not in the instance method, otherwise an error will be reported when the signal is sent and the slot method is connected later.
AttributeError: ‘PyQt5.QtCore.pyqtSignal‘ object has no attribute ‘connect‘
Guess you like
Origin blog.csdn.net/weixin_47542175/article/details/114055523
Recommended
Ranking