Book description
A comprehensive guide that will get you up and running with embedded software development using Qt5
Key Features
- Learn to create fluid, cross-platform applications for embedded devices
- Achieve optimum performance in your applications with the QT Lite project
- Explore the implementation of Qt with IoT using QtMqtt, QtKNX, and QtWebSockets
Book Description
Qt is an open source toolkit suitable for cross-platform and embedded application development. This book uses inductive teaching to help you learn how to create applications for embedded and Internet of Things (IoT) devices with Qt 5.
You'll start by learning to develop your very first application with Qt. Next, you'll build on the first application by understanding new concepts through hands-on projects and written text. Each project will introduce new features that will help you transform your basic first project into a connected IoT application running on embedded hardware. In addition to gaining practical experience in developing an embedded Qt project, you will also gain valuable insights into best practices for Qt development and explore advanced techniques for testing, debugging, and monitoring the performance of Qt applications. The examples and projects covered throughout the book can be run both locally and on an embedded platform.
By the end of this book, you will have the skills you need to use Qt 5 to confidently develop modern embedded applications.
What you will learn
- Understand how to develop Qt applications using Qt Creator on Linux
- Explore various Qt GUI technologies to build resourceful and interactive applications
- Understand Qt's threading model to maintain a responsive UI
- Get to grips with remote target load and debug using Qt Creator
- Become adept at writing IoT code using Qt
- Learn a variety of software best practices to ensure that your code is efficient
Who this book is for
This book is for software and hardware professionals with experience in different domains who are seeking new career opportunities in embedded systems and IoT. Working knowledge of the C++ Linux command line will be useful to get the most out of this book.
Publisher resources
Table of contents
- Title Page
- Copyright and Credits
- About Packt
- Contributors
- Preface
- Section 1: Getting Started with Embedded Qt
- Setting Up the Environment
- Writing Your First Qt Application
- Running Your First Application on the Target
- Section 2: Working with Embedded Qt
-
Important Qt Concepts
- Technical requirements
- Communicating effectively – signals and slots
- Looking inside – Qt's introspection support
- Differing views — model/view architecture
- Keeping it portable – Qt's platform abstraction
- Taking a closer look at building and Main
- Summary
- Questions
- Managing the Overall Workflow
- Exploring GUI Technologies
- Adding More Features
- Section 3: Deep Dive into Embedded Qt
- Qt in the Embedded World
-
Exploring the IoT with Qt
- Technical requirements
- Examining the IoT and Qt
- Forecasting the weather using a Web API
- Reading the temperature sensor in Qt
-
Publishing our status using MQTT
- Building IoT extensions
-
Using QtMQTT
- Creating the MqttClient class
- Implementing the MqttClient class
- Implementing the constructor
- Implementing our hostname and port setters
- Connecting and disconnecting from a broker
- Handling connection state changes and incoming messages
- Publishing BigProject's status
- Wiring in and setting up the MqttClient class
- Starting and stopping the MQTT publication
- Testing the MQTT publication
- Final words on MQTT
- Summary
- Questions
- Further reading
- Using More Qt-Related Technologies
- Section 4: Advanced Techniques and Best Practices
- Debugging, Logging, and Monitoring Qt Applications
- Responsive Application Programming - Threads
- Qt Best Practices
- Appendix A: BigProject Requirements
- Appendix B: Bonus Code - Simplifying Q_PROPERTY
- Assessments
- Other Books You May Enjoy
Product information
- Title: Hands-On Embedded Programming with Qt
- Author(s):
- Release date: July 2019
- Publisher(s): Packt Publishing
- ISBN: 9781789952063
You might also like
video
Red Hat Certified System Administrator (RHCSA) RHEL 9
14+ Hours of Video Instruction Get intensive, hands-on RHEL 9 training with Sander van Vugt in …
book
Mastering Python - Second Edition
Use advanced features of Python to write high-quality, readable code and packages Key Features Extensively updated …
book
Cross-Platform Development with Qt 6 and Modern C++
Enhance your cross-platform programming abilities with the powerful features and capabilities of Qt 6 Key Features …
book
Embedded Programming with Modern C++ Cookbook
Explore various constraints and challenges that embedded developers encounter in their daily tasks and learn how …