Hey folks!
Say I'd like to extract a object to encapsulate some functionality that was bloating my main window. Some things are now wired up nicely with QtCore.Signal which can pass along data. Buy when I emit() I cannot get anything returned, right? Well it's designed like that.
But how would you handle that case? 🤔
18 January 2024
Hello there! I don't really get what the problem is. You can emit from any function, once or several times. The function may return None or something, raise an exception or do whatever you wish. However, a Slot connected to fire on the Signal should return None. I'm unsure what would happen if a Slot returns something; just don't return anything but None.