Hands-On GUI Programming with C++ and Qt5

Create visually appealing and feature-rich applications by using Qt 5 and the C++ language
Preview in Mapt

Hands-On GUI Programming with C++ and Qt5

Lee Zhi Eng
New Release!

Create visually appealing and feature-rich applications by using Qt 5 and the C++ language
Mapt Subscription
FREE
$29.99/m after trial
eBook
$25.20
RRP $35.99
Save 29%
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$25.20
$44.99
$29.99 p/m after trial
RRP $35.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Hands-On GUI Programming with C++ and Qt5 Book Cover
Hands-On GUI Programming with C++ and Qt5
$ 35.99
$ 25.20
Learn QT 5 Book Cover
Learn QT 5
$ 35.99
$ 25.20
Buy 2 for $35.00
Save $36.98
Add to Cart

Book Details

ISBN 139781788397827
Paperback404 pages

Book Description

Qt 5, the latest version of Qt, enables you to develop applications with complex user interfaces for multiple targets. It provides you with faster and smarter ways to create modern UIs and applications for multiple platforms. This book will teach you to design and build graphical user interfaces that are functional, appealing, and user-friendly.

In the initial part of the book, you will learn what Qt 5 is and what you can do with it. You will explore the Qt Designer, discover the different types of widgets generally used in Qt 5, and then connect your application to the database to perform dynamic operations. Next, you will be introduced to Qt 5 chart which allows you to easily render different types of graphs and charts and incorporate List View Widgets in your application. You will also work with various Qt modules, like QtLocation, QtWebEngine, and the networking module through the course of the book. Finally, we will focus on cross-platform development with QT 5 that enables you to code once and run it everywhere, including mobile platforms. 

By the end of this book, you will have successfully learned about high-end GUI applications and will be capable of building many more powerful, cross-platform applications.

Table of Contents

Chapter 1: Introduction to Qt
What is Qt?
Downloading and installing Qt
Running our first Hello World Qt program
Summary
Chapter 2: Qt Widgets and Style Sheets
Introduction to Qt Designer
Basic Qt widgets
Qt Style Sheets
Summary
Chapter 3: Database Connection
Introducing the MySQL database system
Setting up the MySQL database
SQL commands
Database connection in Qt
Creating our functional login page
Summary
Chapter 4: Graphs and Charts
Types of charts and graphs in Qt
Implementing charts and graphs
Creating the dashboard page
Summary
Chapter 5: Item Views and Dialogs
Working with item view widgets
Working with dialog boxes
Creating File Selection Dialogs
Image scaling and cropping
Summary
Chapter 6: Integrating Web Content
Creating your own web browser
Sessions, cookies, and cache
Integrating JavaScript and C++
Summary
Chapter 7: Map Viewer
Map display
Marker and shape display
Obtaining a user's location
Geo Routing Request
Summary
Chapter 8: Graphics View
Graphics View framework
Summary
Chapter 9: The Camera Module
The Qt multimedia module
Connecting to the camera
Capturing a camera image to file
Recording a camera video to file
Summary
Chapter 10: Instant Messaging
The Qt networking module
Creating an instant messaging server
Creating an instant messaging client
Summary
Chapter 11: Implementing a Graphics Editor
Drawing vector shapes
Saving vector images to an SVG File
Creating a paint program
Summary
Chapter 12: Cloud Storage
Setting up the FTP server
Displaying the file list on the list view
Uploading files to the FTP server
Downloading files from the FTP server
Summary
Chapter 13: Multimedia Viewers
Revisiting the multimedia module
The image viewer
The music player
The video player
Summary
Chapter 14: Qt Quick and QML
Introduction to Qt Quick and QML
Qt Quick widgets and controls
Qt Quick Designer
Qt Quick layouts
Basic QML scripting
Summary
Chapter 15: Cross-Platform Development
Understanding compilers
Build settings
Deploying to PC platforms
Deploying to mobile platforms
Summary
Chapter 16: Testing and Debugging
Debugging techniques
Debuggers supported by Qt
Unit testing
Summary

What You Will Learn

  • Implement tools provided by Qt 5 to design a beautiful GUI
  • Understand different types of graphs and charts supported by Qt 5
  • Create a web browser using the Qt 5 WebEngine module and web view widget
  • Connect to the MySQL database and display data obtained from it onto the Qt 5 GUI
  • Incorporate the Qt 5 multimedia and networking module in your application
  • Develop Google Map-like applications using Qt 5’s location module
  • Discover cross-platform development by exporting the Qt 5 application to different platforms
  • Uncover the secrets behind debugging Qt 5 and C++ applications

Authors

Table of Contents

Chapter 1: Introduction to Qt
What is Qt?
Downloading and installing Qt
Running our first Hello World Qt program
Summary
Chapter 2: Qt Widgets and Style Sheets
Introduction to Qt Designer
Basic Qt widgets
Qt Style Sheets
Summary
Chapter 3: Database Connection
Introducing the MySQL database system
Setting up the MySQL database
SQL commands
Database connection in Qt
Creating our functional login page
Summary
Chapter 4: Graphs and Charts
Types of charts and graphs in Qt
Implementing charts and graphs
Creating the dashboard page
Summary
Chapter 5: Item Views and Dialogs
Working with item view widgets
Working with dialog boxes
Creating File Selection Dialogs
Image scaling and cropping
Summary
Chapter 6: Integrating Web Content
Creating your own web browser
Sessions, cookies, and cache
Integrating JavaScript and C++
Summary
Chapter 7: Map Viewer
Map display
Marker and shape display
Obtaining a user's location
Geo Routing Request
Summary
Chapter 8: Graphics View
Graphics View framework
Summary
Chapter 9: The Camera Module
The Qt multimedia module
Connecting to the camera
Capturing a camera image to file
Recording a camera video to file
Summary
Chapter 10: Instant Messaging
The Qt networking module
Creating an instant messaging server
Creating an instant messaging client
Summary
Chapter 11: Implementing a Graphics Editor
Drawing vector shapes
Saving vector images to an SVG File
Creating a paint program
Summary
Chapter 12: Cloud Storage
Setting up the FTP server
Displaying the file list on the list view
Uploading files to the FTP server
Downloading files from the FTP server
Summary
Chapter 13: Multimedia Viewers
Revisiting the multimedia module
The image viewer
The music player
The video player
Summary
Chapter 14: Qt Quick and QML
Introduction to Qt Quick and QML
Qt Quick widgets and controls
Qt Quick Designer
Qt Quick layouts
Basic QML scripting
Summary
Chapter 15: Cross-Platform Development
Understanding compilers
Build settings
Deploying to PC platforms
Deploying to mobile platforms
Summary
Chapter 16: Testing and Debugging
Debugging techniques
Debuggers supported by Qt
Unit testing
Summary

Book Details

ISBN 139781788397827
Paperback404 pages
Read More

Read More Reviews

Recommended for You

Learn QT 5 Book Cover
Learn QT 5
$ 35.99
$ 25.20
Computer Vision with OpenCV 3 and Qt5 Book Cover
Computer Vision with OpenCV 3 and Qt5
$ 39.99
$ 28.00
Game Programming using Qt 5 Beginner's Guide - Second Edition Book Cover
Game Programming using Qt 5 Beginner's Guide - Second Edition
$ 39.99
$ 28.00
C# 7.1 and .NET Core 2.0 – Modern Cross-Platform Development - Third Edition Book Cover
C# 7.1 and .NET Core 2.0 – Modern Cross-Platform Development - Third Edition
$ 31.99
$ 22.40
Understanding Software Book Cover
Understanding Software
$ 23.99
$ 16.80
C# 7.1 and .NET Core 2.0 – Modern Cross-Platform Development - Third Edition Book Cover
C# 7.1 and .NET Core 2.0 – Modern Cross-Platform Development - Third Edition
$ 31.99
$ 22.40