Reputation: 43
I'm using Qt Designer and PySide2 to create a desktop app. I used PyQt5 before, but had to switch to the PySide2.
And I get this type of error when I try to disconnect a button (which worked fine using PyQt5):
code:
self.ui.pushButton.disconnect()
error:
PySide2.QtCore.QObject.disconnect(): not enough arguments
What should I add? Thanks.
Upvotes: 0
Views: 1404
Reputation: 134
Mby this will help:
self.ui.pushButton.clicked.disconnect()
Hope this can slove your problem :)
Upvotes: 1