Signals and slots against events and event listeners

Right to the point!

  • How do signals / slots and events / listener events relate?
  • Are there any pros and cons?
  • Which should I consider and why?

Thanks in advance!

+4
source share
1 answer

My general approach is to use Events / Listeners inside one application, they are really efficient and fast, and there are many tools in the IDE, which makes them relatively easy to implement. My rule is to use this template if you really need to be sure that the listener receives an event notification every time.

I use the signal / slot pattern in SOA or system integration applications as it is more state-friendly and state-friendly.

+3
source

All Articles