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
- Understanding signals and the handler event system
- Understanding events and the event loop
- Managing events with an event filter
- Drag and drop
By the end of this chapter, you will be able...