PySide6 Signal and Slots tutorial not working
-
The example code for Overloading Signals and Slots with Different Types isn't working.
https://doc.qt.io/qtforpython/tutorials/basictutorial/signals_and_slots.html#overloading-signals-and-slots-with-different-types
It gives error message
"Exception has occurred: TypeError
QObject() takes at most 1 argument (2 given)" -
Hi and welcome to devnet,
Thanks for the warning.
Can you check the bug report system to see if it's already mentioned ? If not, please open a new ticket.
While the documentation gets fixed, you can simply remove the self that you find on the super call line. -
This will be fixed (see https://codereview.qt-project.org/c/pyside/pyside-setup/+/432064/ ).
Note though that the technique "Overloading Signals and Slots with Different Types" is a Qt 5 legacy; it should not be used in new code.
Btw, have you considered contributing fixes yourself ( see https://contribute.qt-project.org/guidelines )?