Timeline for Difference between Signal/Slot and DataBusPattern
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 12, 2014 at 18:31 | vote | accept | Scheintod | ||
Dec 12, 2014 at 18:17 | comment | added | Karl Bielefeldt | It is the observer pattern. A signal is an event and a slot is a listener. The meta object compiler just takes care of the boilerplate of implementing the pattern for you. | |
Dec 12, 2014 at 17:10 | comment | added | Scheintod |
Thanks for your answer! It seems I completely misunderstood Signal/Slot. But know: What's the difference to ObserverPattern (e.g. like in Events/Listeners) then? Or is it that just another name because QT has it in every QObject ? (Sorry, I stopped reading your Link at "The Meta Object Compiler" where too much C++ happend...)
|
|
Dec 12, 2014 at 16:46 | history | answered | Karl Bielefeldt | CC BY-SA 3.0 |