Sorry for the humorous phrasing of the question. I couldn't resist ;-)
If I emit
a signal that's not connected to a slot anywhere in the code, is there still a performance cost associated with that "emission". I'm not familiar with the mechanism via which Qt's signal/slots are implemented, so I apologize if this question reveals my fundamental ignorance of Qt's underlying design.
At least a small one. Qt at least needs to look into the signal's connected slot list (or something like this, not sure about that) until it sees that it doesn't have to call anything. But that performance hit should be negligable, considering that you're using such a high-level environment as Qt's signals and slots, anyway.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With