DEV Community

Discussion on: The Evolution of Signals in JavaScript

Collapse
 
rajeev profile image
Rajeev J Sebastian

Signals and slots have been the cornerstone of Qt programming since atleast Qt 3 or even earlier. I moved from Wx to Qt simply to take advantage of signals and slots back in 2002 and by then it was quite well developed (used macros and a custom C++ pre processor)

Thread Thread
 
vivainio profile image
Ville M. Vainio

They are called ”signals” in Qt but they are a different thing. Qt signals are just places where you can hook callbacks, not observable values.

Thread Thread
 
rajeev profile image
Rajeev J Sebastian

In that case I would need to send a complaint to my English teacher.

Jokes aside, in Qt, signals come with values. The receiver of a signal receives the changed value.

Signals represent an observable attribute of any object in Qt, and allow to decouple the receiver from the sender.

Some comments have been hidden by the post's author - find out more