This is the code repository for Qt5 C++ GUI Programming Cookbook - Second Edition, published by Packt.
Practical recipes for building cross-platform GUI applications, widgets, and animations with Qt 5
With the growing demands for developing GUIs for multiple targets and multiple screens, improving the visual quality of your application becomes important to stand out from the rest of the competitors. With its cross-platform ability and latest UI paradigms, QT makes it possible to build intuitive, interactive, and user-friendly user interfaces for your applications.
This book covers the following exciting features: Customize the look and feel of application using widget editor Animating the GUI elements using the QT5's built-in animation system Draw shapes and 2D images using Qt5's powerful rendering system Implement an industry-standard OpenGL library in your project Build a mobile app that supports touch events and exports it on device Parse and extract data from an XML file and present it on your GUI Interact with web content by calling JavaScript functions from C++ Access MySQL, SQLite databases to retrieve data and display it on GUI
If you feel this book is for you, get your copy today!
All of the code is organized into folders. For example, Chapter03.
The code will look like the following:
QPropertyAnimation *animation = new QPropertyAnimation(ui->pushButton, "geometry");
animation->setDuration(10000);
animation->setStartValue(ui->pushButton->geometry());
animation->setEndValue(QRect(200, 200, 100, 50));
animation->start();
Following is what you need for this book: This intermediate-level book is designed for those who want to develop software using Qt 5. If you want to improve the visual quality and content presentation of your software application, this book is for you. Prior experience of C++ programming is required.
With the following software and hardware list you can run all code files present in the book (Chapter 1-13).
Chapter | Software required | OS required |
---|---|---|
1-9, 12, 13 | Qt5 | Windows |
10 | FFmpeg | Windows |
11 | XAMP | Windows |
We also provide a PDF file that has color images of the screenshots/diagrams used in this book. Click here to download it.
Lee Zhi Eng is a self-taught programmer who worked as an artist and programmer at several game studios before becoming a part-time lecturer for two years at a university, teaching game development subjects related to Unity and Unreal Engine. He has not only taken part in various projects related to games, interactive apps, and virtual reality, but has also participated in multiple projects that are more oriented toward software and system development. When he is not writing code, he enjoys traveling, photography, and exploring new technologies.
Qt5 C++ GUI Programming Cookbook
Hands-On GUI Programming with C++ and Qt5
Building a Game with Unity and Blender
Click here if you have any feedback or suggestions.