Skip to content Skip to sidebar Skip to footer

Pyside Connection Error "runtimeerror: Failed To Connect Signal Clicked()"

from PySide.QtCore import * from PySide.QtGui import * import sys import stackwid class Dialog(QDialog,stackwid.Ui_Dialog): def __init__(self,parent = None): super(D

Solution 1:

You don't connect the signal to your set()-function, but to it's return value. You just need to remove the parenthesis, then it should work:

self.camButton.clicked.connect(self.set)

Solution 2:

Passing extra arguments to slots, this may help you ,good luck!

self.camButton.clicked.connect(lambda: self.set(index))

defset(self, index):

    self.stackedWidget.setCurrentIndex(index)

Post a Comment for "Pyside Connection Error "runtimeerror: Failed To Connect Signal Clicked()""