Book description
Enhance your cross-platform programming abilities with the powerful features and capabilities of Qt 6
Key Features
- Leverage Qt and C++ capabilities to create modern, cross-platform applications that can run on a wide variety of software applications
- Explore what’s new in Qt 6 and understand core concepts in depth
- Build professional customized GUI applications with the help of Qt Creator
Book Description
Qt is a cross-platform application development framework widely used for developing applications that can run on a wide range of hardware platforms with little to no change in the underlying codebase. If you have basic knowledge of C++ and want to build desktop or mobile applications with a modern graphical user interface (GUI), Qt is the right choice for you. Cross-Platform Development with Qt 6 and Modern C++ helps you understand why Qt is one of the favorite GUI frameworks adopted by industries worldwide, covering the essentials of programming GUI apps across a multitude of platforms using the standard C++17 and Qt 6 features.
Starting with the fundamentals of the Qt framework, including the features offered by Qt Creator, this practical guide will show you how to create classic user interfaces using Qt Widgets and touch-friendly user interfaces using Qt Quick. As you advance, you'll explore the Qt Creator IDE for developing applications for multiple desktops as well as for embedded and mobile platforms. You will also learn advanced concepts about signals and slots. Finally, the book takes you through debugging and testing your app with Qt Creator IDE.
By the end of this book, you'll be able to build cross-platform applications with a modern GUI along with the speed and power of native apps.
What you will learn
- Write cross-platform code using the Qt framework to create interactive applications
- Build a desktop application using Qt Widgets
- Create a touch-friendly user interface with Qt Quick
- Develop a mobile application using Qt and deploy it on different platforms
- Get to grips with Model/View programming with Qt Widgets and Qt Quick
- Discover Qt’s graphics framework and add animations to your user interface
- Write test cases using the Qt Test framework and debug code
- Build a translation-aware application
- Follow best practices in Qt to write high-performance code
Who this book is for
This book is for application developers who want to use C++ and Qt to create modern, responsive applications that can be deployed to multiple operating systems such as Microsoft Windows, Apple macOS, and Linux desktop platforms. Although no prior knowledge of Qt is expected, beginner-level knowledge of the C++ programming language and object-oriented programming system (OOPs) concepts will be helpful.
Table of contents
- Cross-Platform Development with Qt 6 and Modern C++
- Contributors
- About the author
- About the reviewers
- Preface
- Section 1: The Basics
- Chapter 1: Introduction to Qt 6
- Chapter 2: Introduction to Qt Creator
- Chapter 3: GUI Design Using Qt Widgets
- Chapter 4: t Quick and QML
- Section 2: Cross-Platform Development
-
Chapter 5: Cross-Platform Development
- Technical requirements
- Understanding cross-platform development
- Understanding compilers
- Building with qmake
- Qt Project (.pro) files
- Understanding build settings
- Platform-specific settings
- Using Qt with Microsoft Visual Studio
- Running a Qt application on Linux
- Running a Qt application on macOS and iOS
- Other Qt-supported platforms
- Porting from Qt 5 into Qt 6
- Summary
- Section 3: Advanced Programming, Debugging, and Deployment
-
Chapter 6: Signals and Slots
- Technical requirements
- Understanding Qt signals and slots
- The working mechanism of Qt signals and slots
- Getting to know Qt's property system
- Using signals and slots in Qt Designer
- Understanding signals and the handler event system in QML
- Understanding events and the event loop
- Managing events with an event filter
- Drag and drop
- Summary
- Chapter 7: Model View Programming
-
Chapter 8: Graphics and Animations
- Technical requirements
- Understanding Qt's graphics framework
- QPainter and 2D graphics
- Introducing the Graphics View framework
- Understanding the Qt OpenGL module
- Graphics in Qt Quick
- Understanding the Qt Quick scene graph
- Shader effects
- Using the Canvas QML type
- Understanding particle simulations
- Animation in Qt Widgets
- Animation and transitions in Qt Quick
- States, state machine, and transitions in Qt Quick
- The state machine in Qt Widgets
- Summary
- Chapter 9: Testing and Debugging
- Chapter 10: Deploying Qt Applications
- Chapter 11: Internationalization
-
Chapter 12: Performance Considerations
- Technical requirements
- Understanding performance optimization
- Optimizing C++ code
- Using concurrency, parallelism, and multithreading
- Profiling a Qt Quick application using QML Profiler and Flame Graph
- Other Qt Creator analysis tools
- Optimizing graphical performance
- Creating benchmarks
- Different analysis tools and optimization strategies
- Performance considerations for Qt Widgets
- Learning best practices of QML coding
- Summary
- Why subscribe?
- Other Books You May Enjoy
Product information
- Title: Cross-Platform Development with Qt 6 and Modern C++
- Author(s):
- Release date: June 2021
- Publisher(s): Packt Publishing
- ISBN: 9781800204584
You might also like
book
Modern C++ Programming with Test-Driven Development
If you program in C++ you've been neglected. Test-driven development (TDD) is a modern software development …
book
Modern CMake for C++
Write comprehensive, professional-standard CMake projects and ensure the quality and simplicity of your solutions Purchase of …
book
Software Architecture with C++
Apply business requirements to IT infrastructure and deliver a high-quality product by understanding architectures such as …
book
Effective Modern C++
Coming to grips with C++11 and C++14 is more than a matter of familiarizing yourself with …