Qt events and signal/slots

Viewed 61059

In the Qt world, what is the difference of events and signal/slots?

Does one replace the other? Are events an abstraction of signal/slots?

10 Answers

'Event processing' by Leow Wee Kheng says:

enter image description here

Jasmine Blanchette says:

The main reason why you would use events rather than standard function calls, or signals and slots, is that events can be used both synchronously and asynchronously (depending on whether you call sendEvent() or postEvents()), whereas calling a function or invoking a slot is always synchronous. Another advantage of events is that they can be filtered.

Related