Qt's Signals and Slots
Qt's Signals and Slots
Vivian Siahaan signal needs to be connected to a method, also known as a slot Slots refer to the method that contains the code to be executed when a signal
To use signals and slots for implementing loose coupling, it must be easy to connect signals and slots that only partially match signatures Qt's signals and slots mechanism ensures that if you connect a signal to a slot, the slot will be called with the signal's parameters at the right time Signals
fire queen slot machine Signals and slots are loosely coupled: A class which emits a signal neither knows nor cares which slots receive the signal Qt's signals and slots mechanism Signals and Slots · loose coupling: The key advantage of the signals and slots is that the caller does not have to know anything about the receiver and vice