Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
5.12.0
-
None
-
CentOS
Description
Hello,
when using a lambda as a slot, the argument value is not passed properly. This is a regression.
Here is an example:
from PySide2 import QtCore, QtGui, QtWidgets import sys def foo (text): print(text) if __name__ == '__main__': app = QtWidgets.QApplication(sys.argv) t = 'data' button = QtWidgets.QPushButton('test') button.clicked.connect(lambda text=t: foo(text)) button.show() sys.exit(app.exec_())
On PySide2-5.9.1, the output, as expected, was 'data'
On PySide2-5.12.1, the output is 'False'
Regards,
Attachments
Issue Links
- resulted from
-
PYSIDE-104 QGroupBox clicked signal doesn't pass checked argument
- Closed