Sign up for the KDAB Newsletter
Stay on top of the latest news, publications, events and more.
Go to Sign-up
Find what you need - explore our website and developer resources
22 December 2020
"When the user clicks on this button, run this code" is probably one of the oldest problems in programming; many solutions have been proposed through the years. Qt has its own solution: the signals and slots mechanism.
When the button gets clicked, it emits a signal telling everyone (who's listening) that it has been clicked by the user. The slot implements the code we want to run. And the final magic: a connection gets established between the signal and the slot. This video explains how to achieve such a connection from C++.
The example code showcased in this video is available here: https://github.com/KDAB/kdabtv
Stay on top of the latest news, publications, events and more.
Go to Sign-up
Learn Modern C++
Our hands-on Modern C++ training courses are designed to quickly familiarize newcomers with the language. They also update professional C++ developers on the latest changes in the language and standard library introduced in recent C++ editions.
Learn more