PyQt4.QtCore.pyqtSignal object has no attribute 'connect'

前端 未结 6 1033
别那么骄傲
别那么骄傲 2020-12-23 09:04

I\'m having issues with a custom signal in a class I made.

Relevant code:

self.parse_triggered = QtCore.pyqtSignal()

def parseFile(self):
    self.e         


        
6条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-23 09:32

    I had the same problem. I forgot that if a class uses Signals, then it must inherit from QObject. I was doing some re-factoring and did not pay attention to this.

提交回复
热议问题