-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Pyside GUI Application Development- Second Edition - Second Edition
By :
We saw 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 that is based on the user's requirement. Qt provides the support to create 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 created in Chapter 3, Main Windows and Layout Management. The Find Dialog class is inherited from the QDialog class and defines the properties to implement search functionality. Once the find dialog functions are defined, it can be added to our text editor application, and the slots are implemented accordingly.
In order to create a Find dialog, we must create an outline of what it will look like. The following is a sample look of how we would want our Find dialog to appear:

This is a very simple Find dialog. We would want to capture the text that has to be...
Change the font size
Change margin width
Change background colour