5 June 2024
Anton YablokovDo the types I provide to a @Slot(…) decorator get ever checked?
yes, there is a transformation between the type is sent by the signal and the one that's received with the Slot
Cristián 🥑yes, there is a transformation between the type is sent by the signal and the one that's received with the Slot
What do you mean by the “transformation”? Do the arguments get converted into the types mentioned in the decorator? If so, what happens if the values passed to an emit call cannot be converted? Say, the callable expects some arguments, but the decorator is constructed without any, i.e., @Slot()?
Hey crew! I just fixed a weird issue with our PySide code when passing args and kwargs onto QMenu.addAction.
In the 5.15.8 version of Adobe Substance Painter (couldn't test it anywhere else, there is no wheel for this version)
self.addAction(*args, **kwargs)
This broke with a ValueError when kwargs were empty! So I added if/else to call it without. Now it works everywhere again. 😓
It was actually giving the found and the expected signature which were .. yea like the same. The ONLY difference being the tiny , in the end 🙈