Book Image

Pyside GUI Application Development- Second Edition - Second Edition

By : Venkateshwaran Loganathan, Gopinath Jaganmohan
Book Image

Pyside GUI Application Development- Second Edition - Second Edition

By: Venkateshwaran Loganathan, Gopinath Jaganmohan

Overview of this book

Elegantly-built GUI applications are always a massive hit among users. PySide is an open source software project that provides Python bindings for the Qt cross-platform UI framework. Combining the power of Qt and Python, PySide provides easy access to the Qt framework for Python developers and also acts as an excellent rapid application development platform. This book will take you through everything you need to know to develop UI applications. You will learn about installing and building PySide in various major operating systems as well as the basics of GUI programming. The book will then move on to discuss event management, signals and slots, and the widgets and dialogs available with PySide. Database interaction and manipulation is also covered. By the end of this book, you will be able to program GUI applications efficiently and master how to develop your own applications and how to run them across platforms.
Table of Contents (13 chapters)

Custom dialogs


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...