Application Development with Qt Creator
Third Edition
Build cross-platform applications and GUIs using
Qt 5 and C++
Lee Zhi Eng
Ray Rischpater
BIRMINGHAM - MUMBAI
Application Development with Qt CreatorThird Edition
Copyright 2020 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the authors, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
Commissioning Editor: Richa Tripathi
Acquisition Editor: Alok Dhuri
Content Development Editor: Tiksha Sarang
Senior Editor: Afshaan Khan
Technical Editor: Gaurav Gala
Copy Editor: Safis Editing
Project Coordinator: Francy Puthiry
Proofreader: Safis Editing
Indexer: Rekha Nair
Production Designer: Joshua Misquitta
First published: November 2013
Second edition: November 2014
Third edition: January 2020
Production reference: 1310120
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.
ISBN 978-1-78995-175-2
www.packt.com
Packt.com
Subscribe to our online digital library for full access to over 7,000 books and videos, as well as industry leading tools to help you plan your personal development and advance your career. For more information, please visit our website.
Why subscribe?
Spend less time learning and more time coding with practical eBooks and Videos from over 4,000 industry professionals
Improve your learning with Skill Plans built especially for you
Get a free eBook or video every month
Fully searchable for easy access to vital information
Copy and paste, print, and bookmark content
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.packt.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at customercare@packtpub.com for more details.
At www.packt.com , you can also read a collection of free technical articles, sign up for a range of free newsletters, and receive exclusive discounts and offers on Packt books and eBooks.
About the authors
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 2 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.
Ray Rischpater is an engineer with over 20 years of experience in writing about and developing for mobile computing platforms. He holds a bachelor's degree in mathematics from the University of California and is a member of the IEEE, ACM, and ARRL. He has participated in the development of internet technologies and custom applications.
Currently, he's employed as a technical program manager at Google. In his free time, he enjoys hiking and photography with his family and friends. He provides public service through amateur radio at the licensed station KF6GPE and also irregularly blogs. He has authored this book's previous editions as well as several other books.
About the reviewer
Marthala Vishnu Vardhan Reddy is an enthusiastic software engineer who works predominantly on a machine tool manufacturing platform developed with C++/Qt. His current focus is on the digitization of metal cutting tool data in the direction of Industry 4.1. He completed his masters at the University of Stuttgart, Germany, and has also written an IEEE paper publication on the 5G network. He has been a reviewer for several other Qt books such as Learn Qt 5. In addition to this, he is a public speaker and has given many guest lectures at prestigious universities. Vishnu loves to do lots of nature-related activities such as skiing, rock climbing, and hiking. At home, he enjoys streaming games.
Packt is searching for authors like you
If you're interested in becoming an author for Packt, please visit authors.packtpub.com and apply today. We have worked with thousands of developers and tech professionals, just like you, to help them share their insight with the global tech community. You can make a general application, apply for a specific hot topic that we are recruiting an author for, or submit your own idea.
Preface
This latest version of this Qt Creator book provides an in-depth understanding of Qt's massive library and its functionality. Qt is a powerful development framework that serves as a complete toolset for building cross-platform applications, helping you to reduce development time and improve productivity.
This Qt programming book takes you through Qt Creator's latest features, such as Qt Quick Controls 2, enhanced CMake support, a new graphical editor for SCXML, and a model editor. You'll start by designing a user interface, work with multimedia and sensors using Qt Quick, and finally develop applications for mobile, IoT, and embedded devices using Qt Creator. After reading through, you will be able to build a solid foundation in Qt by learning about its core features and create your own cross-platform applications from scratch using Qt Creator and the C++ programming language.
Who this book is for
This book is for beginners and experienced programmers alike who want to dive into GUI programming using the powerful Qt development tools and libraries. This book is suitable for hardcore programmers who are used to object-oriented programming in the C++ language, as well as those who are design-oriented and just trying to learn how to create beautiful and intuitive GUI using Qt Quick.
What this book covers
, Getting Started with Qt Creator , covers everything you need in order to get started downloading Qt Creator for Linux, macOS X, and Windows. We will also see how to ensure that your basic configuration is running and take a quick look at a simple QtGui application as well as a Qt Quick application.
Next page