Book description
Master application development by writing succinct, robust, and reusable code with Qt 5
About This Book
Unleash the power of Qt 5 with C++14
Integrate useful third-party libraries such as OpenCV
Package and deploy your application on multiple platforms
Who This Book Is For
This book will appeal to developers and programmers who would like to build GUI-based applications. Knowledge of C++ is necessary and the basics of Qt would be helpful.
What You Will Learn
Create stunning UIs with Qt Widget and Qt Quick
Develop powerful, cross-platform applications with the Qt framework
Design GUIs with the Qt Designer and build a library in it for UI preview
Handle user interaction with the Qt signal/slot mechanism in C++
Prepare a cross-platform project to host a third-party library
Build a Qt application using the OpenCV API
Use the Qt Animation framework to display stunning effects
Deploy mobile apps with Qt and embedded platforms
In Detail
Qt 5.7 is an application development framework that provides a great user experience and develops full-capability applications with Qt Widgets, QML, and even Qt 3D.
This book will address challenges in successfully developing cross-platform applications with the Qt framework. Cross-platform development needs a well-organized project. Using this book, you will have a better understanding of the Qt framework and the tools to resolve serious issues such as linking, debugging, and multithreading. Your journey will start with the new Qt 5 features. Then you will explore different platforms and learn to tame them. Every chapter along the way is a logical step that you must take to master Qt. The journey will end in an application that has been tested and is ready to be shipped.
Style and approach
This is an easy-to-follow yet comprehensive guide to building applications in Qt. Each chapter covers increasingly advanced topics, with subjects grouped according to their complexity as well as their usefulness. Packed with practical examples and explanations, Mastering Qt contains everything you need to take your applications to the next level.
Publisher resources
Table of contents
-
Mastering Qt 5
- Mastering Qt 5
- Credits
- About the Authors
- About the Reviewer
- www.PacktPub.com
- Preface
- 1. Get Your Qt Feet Wet
- 2. Discovering QMake Secrets
- 3. Dividing Your Project and Ruling Your Code
- 4. Conquering the Desktop UI
-
5. Dominating the Mobile UI
- Starting with Qt Quick and QML
- Checking your development environment
- Creating a Qt Quick project
- Preparing your Qt Quick gallery entry point
- Displaying albums with ListView
- Theming the application with a QML singleton
- Loading a database on mobile
- Creating a new album from a custom InputDialog
- Loading images with an ImageProvider
- Displaying thumbnails in a GridView
- Swiping through full resolution pictures
- Summary
-
6. Even Qt Deserves a Slice of Raspberry Pi
- Discovering Qt3D
- Configuring Qt for your Raspberry Pi
- Creating an entry point for your Qt3D code
- Setting up the scene
- Assembling your Qt3D entities
- Preparing the board game
- Crafting entities from the factory
- Building a snake engine in JavaScript
- Varying the HUD with QML states
- Profiling your QML application
- Summary
-
7. Third-Party Libraries Without a Headache
- Creating your Qt Designer plugin
- Configuring the project for Windows
- Configuring the project for Linux
- Configuring the project for Mac
- Implementing your OpenCV filters
- Designing the UI with FilterWidget
- Exposing your plugin to Qt Designer
- Using your Qt Designer plugin
- Building the image-filter application
- Summary
- 8. Animations - It's Alive, Alive!
- 9. Keeping Your Sanity with Multithreading
- 10. Need IPC? Get Your Minions to Work
-
11. Having Fun with Serialization
- Architecting the drum machine project
- Creating a drum track
- Making your objects serializable with QVariant
- Serializing objects in JSON format
- Serializing objects in XML format
- Serializing objects in binary format
- Playing low latency sounds with QSoundEffect
- Triggering a QButton with your keyboard
- Bringing PlaybackWorker to life
- Accepting mouse drag and drop events
- Summary
- 12. You Shall (Not) Pass with QTest
- 13. All Packed and Ready to Deploy
-
14. Qt Hat Tips and Tricks
- Managing your workspace with sessions
- Searching with the Locator
- Increasing the compilation speed
- Examining the memory with Qt Creator
- Generating random numbers
- Silencing unused variable warnings
- Logging custom objects to QDebug
- Improving log messages
- Saving your logs to a file
- Generating a command-line interface
- Sending and receiving HTTP data
- Summary
Product information
- Title: Mastering Qt 5
- Author(s):
- Release date: December 2016
- Publisher(s): Packt Publishing
- ISBN: 9781786467126
You might also like
book
Mastering Qt 5
An In-depth guide updated with the latest version of Qt 5.11 including new features such as …
book
Learn Qt 5
Learn the fundamentals of QT 5 framework to develop interactive cross-platform applications About This Book A …
book
Getting Started with Qt 5
Begin writing graphical user interface(GUI) applications for building human machine interfaces with a clear understanding of …
video
Mastering Qt 5 GUI Programming
Qt is a powerful, cross-platform, graphics development framework. It provides a large set of consistent, standardized …