Book Image

Qt5 C++ GUI Programming Cookbook - Second Edition

By : Lee Zhi Eng
Book Image

Qt5 C++ GUI Programming Cookbook - Second Edition

By: Lee Zhi Eng

Overview of this book

With the growing need to develop GUIs for multiple targets and multiple screens, improving the visual quality of your application becomes important so that it stands out from your competitors. With its cross-platform ability and the latest UI paradigms, Qt makes it possible to build intuitive, interactive, and user-friendly user interfaces for your applications. Qt5 C++ GUI Programming Cookbook, Second Edition teaches you how to develop functional and appealing user interfaces using the latest version of QT5 and C++. This book will help you learn a variety of topics such as GUI customization and animation, graphics rendering, implementing Google Maps, and more. You will also be taken through advanced concepts like asynchronous programming, event handling using signals and slots, network programming, various aspects of optimizing your application. By the end of the book, you will be confident to design and customize GUI applications that meet your clients' expectations and have an understanding of best practice solutions for common problems.
Table of Contents (15 chapters)

What this book covers

Chapter 1, Look-and-Feel Customization with Qt Designer, shows how to design your program's user interface using both Qt Designer and Qt Quick Designer.

Chapter 2, Event Handling – Signals and Slots, covers topics related to the signals and slots mechanism provided by Qt 5, which allows you to handle your program's event callbacks with ease.

Chapter 3, States and Animations with Qt and QML, explains how to animate your user interface widgets by empowering the state machine framework and the animation framework.

Chapter 4, QPainter and 2D Graphics, covers how to draw vector shapes and bitmap images on screen using Qt's built-in classes.

Chapter 5, OpenGL Implementation, demonstrates how to render 3D graphics in your program by integrating OpenGL in your Qt project.

Chapter 6, Using Network and Managing Large Documents, shows how to set up an FTP file server, then create a program that helps you to transfer files to and from the file server.

Chapter 7, Threading Basics – Asynchronous Programming, covers how to create multi-threading processes in your Qt 5 application and run them simultaneously to process heavy calculations.

Chapter 8, Building a Touch Screen Application with Qt 5, explains how to create a program that works on a touchscreen device.

Chapter 9, XML Parsing Made Easy, shows how to process data in the XML format and use it together with the Google Geocoding API to create a simple address finder.

Chapter 10, Conversion Library, covers how to convert between different variable types, image formats, and video formats using Qt's built-in classes as well as third-party programs.

Chapter 11, Accessing Databases with SQL Driver and Qt, explains how to connect your program to a SQL database using Qt.

Chapter 12, Developing Web Applications Using Qt Web Engine, covers how to use the web rendering engine provided by Qt and develop programs that empower the web technology.

Chapter 13, Performance Optimization, shows how to optimize your Qt 5 application and speed up its processing.