Where is the connect() method in PyQt5?

前端 未结 2 1274
梦谈多话
梦谈多话 2021-01-04 11:53

I\'m following Mark Summerfield\'s Rapid GUI Programming with Python and Qt which is using PyQt4. I\'d prefer to be working with PyQt5, but I have both on my ma

2条回答
  •  自闭症患者
    2021-01-04 12:20

    You are using old-style signals and slots which have not been implemented in PyQt5. Try using new-style signals and slots.

    self.lineedit.returnPressed.connect(self.updateUi)
    

提交回复
热议问题