Chapter 6: Signals and Slots

In the previous chapters, we learned how to create GUI applications with Qt Widgets and Qt Quick. But to make our applications usable, we need to add a communication mechanism. The signals and slots mechanism is one of the distinct features of Qt and makes it unique from other frameworks. Signals and slots are implemented through Qt's meta-object system.

In this chapter, you will learn about signals and slots in depth and how they work internally. You will be able to receive notifications from different classes and take the corresponding action.

In this chapter, we will discuss the following topics:

  • Understanding Qt signals and slots
  • The working mechanism of Qt signals and slots
  • Getting to know Qt's property system ...

Get Cross-Platform Development with Qt 6 and Modern C++ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.