This chapter shed more light on how to use events in Qt. We understood the different situations that call for the use of events instead of the signal-slot mechanism. The first examples touched on how to override and implement custom event handlers. The events we implemented captured the position of a window and also redefined what should happen every second in an example application.
With the aid of events, we also implemented a simple drop event in the drag and drop action, where a simple text editor was created to accept files that are dropped in the text area. Lastly, the chapter illustrated how to create a custom signal that is emitted when an event occurs.
In Chapter 6, Connecting Qt with Databases, we will focus on the various ways to store data and retrieve it when building Qt applications.