Qt’s signal and slot mechanism facilitates communication between objects. A signal is emitted when a particular event occurs, and a slot is a function that is called in response to a signal.
signals:
keyword declares signals within a class.slots:
keyword declares slots within a class.connect()
function establishes the connection between a signal and a slot.