Skip to content Skip to sidebar Skip to footer

How To Apply Pyqt5 Event On A List With Values Instead Of Single Variable Value?

Based on SO question and answer given here I modified the answer where the value becomes a list. It throws me an error. Is it possible that the value is in fact a list with values?

Solution 1:

valueChanged is a signal of Foo itself, so you should use self.valueChanged.connect(self.do_something) instead of self.t.valueChanged.connect(self.do_something). After all, the value that should be emitted with the signal is determined when the signal is emitted, not when connecting the signal to a slot.


Post a Comment for "How To Apply Pyqt5 Event On A List With Values Instead Of Single Variable Value?"