Qt-UI
Signals and Slots
← GUI Example | ● | Signal and Slot Example →
Qt follows the concept of “reaction to action”.
More precisely, this means that observed actions trigger a signal that causes a given set of signal receivers, the so called slots, to react.
This signal/slot pattern is the usual way of communication between qt objects (usually widgets).
It is the Qt-style version of the Observer Pattern.
Note: Qt signals are thread-safe.
← GUI Example | ● | Signal and Slot Example →