We have seen some examples of the built-in dialogs in the previous section. The need may arise in a real application scenario to define and create a custom dialog based on the user's requirement.
Qt provides the support for creating custom based dialogs and use it in addition to the various built-in dialogs. In this section, we are going to explore how to create a custom "Find" dialog for our text editor application that we have created in Chapter 3, Main Windows and Layout Management. The
FindDialog class is inherited from the
QDialog class and defines the properties for implementing a search function. Once the find dialog functions are defined, it can be added to our text editor application and the slots are implemented accordingly. ...