Hands-on GUI programming with C++ and Qt 5 : build stunning cross-platform applications and widgets with the most powerful GUI framework / Lee Zhi Eng.
2018
QA76.73.C153
Formats
Format | |
---|---|
BibTeX | |
MARCXML | |
TextMARC | |
MARC | |
DublinCore | |
EndNote | |
NLM | |
RefWorks | |
RIS |
Linked e-resources
Details
Title
Hands-on GUI programming with C++ and Qt 5 : build stunning cross-platform applications and widgets with the most powerful GUI framework / Lee Zhi Eng.
Author
ISBN
9781788393744 (electronic bk.)
1788393740 (electronic bk.)
9781788397827
1788393740 (electronic bk.)
9781788397827
Published
Birmingham, UK : Packt, 2018.
Language
English
Description
1 online resource : illustrations
Call Number
QA76.73.C153
System Control No.
(OCoLC)1037354600
Summary
Create visually appealing and feature-rich applications by using Qt 5 and the C++ language About This Book Explore Qt 5's powerful features to easily design your GUI application Leverage Qt 5 to build attractive cross-platform applications Work with Qt modules for multimedia, networking, and location, to customize your Qt applications Who This Book Is For This book will appeal to developers and programmers who would like to build GUI-based applications. Basic knowledge of C++ is necessary and the basics of Qt would be helpful. 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 In Detail 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. Style and approach This is a comprehensive guide that explores the essential Qt features and implement them in bu...
Formatted Contents Note
Cover
Title Page
Copyright and Credits
Packt Upsell
Contributors
Table of Contents
Preface
Chapter 1: Introduction to Qt
What is Qt?
Why use Qt?
Discovering tools in Qt
Qt Designer
Qt Quick Designer
Downloading and installing Qt
Setting up the working environment
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
SELECT
INSERT
UPDATE
DELETE
JOIN
Database connection in Qt
Creating our functional login page
Summary
Chapter 4: Graphs and Charts
Types of charts and graphs in Qt
Line and spline charts
Bar charts
Pie charts
Polar charts
Area and scatter charts
Box-and-whiskers charts
Candlestick charts
Implementing charts and graphs
Creating the dashboard page
Summary
Chapter 5: Item Views and Dialogs
Working with item view widgets
Creating our Qt Widgets application
Making our List Widget functional
Adding functionality to the Tree Widget
Finally, our Table Widget
Working with dialog boxes
Creating File Selection Dialogs
Image scaling and cropping
Summary
Chapter 6: Integrating Web Content
Creating your own web browser
Adding the web view widget
Creating a UI for a web browser
Managing browser history
Sessions, cookies, and cache
Managing sessions and cookies
Managing cache
Integrating JavaScript and C++
Calling JavaScript functions from C++
Calling C++ functions from JavaScript
Summary
Chapter 7: Map Viewer
Map display
Setting up the Qt location module
Creating a map display
Marker and shape display.
Displaying position markers on a map
Displaying shapes on a map
Obtaining a user's location
Geo Routing Request
Summary
Chapter 8: Graphics View
Graphics View framework
Setting up a new project
Movable graphics items
Creating an organization chart
Summary
Chapter 9: The Camera Module
The Qt multimedia module
Setting up a new project
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
Connection protocols
Setting up a new project
Creating an instant messaging server
Creating TCP Server
Listening to clients
Creating an instant messaging client
Designing the user interface
Implementing chat features
Summary
Chapter 11: Implementing a Graphics Editor
Drawing vector shapes
Vector versus bitmap
Drawing vector shapes using QPainter
Drawing text
Saving vector images to an SVG File
Creating a paint program
Setting up a user interface
Summary
Chapter 12: Cloud Storage
Setting up the FTP server
Introducing FTP
Downloading FileZilla
Setting up FileZilla
Displaying the file list on the list view
Setting up a project
Setting up user interface
Displaying the file list
Writing the code
Uploading files to the FTP server
Downloading files from the FTP server
Summary
Chapter 13: Multimedia Viewers
Revisiting the multimedia module
Dissecting the module
The image viewer
Designing a user interface for the image viewer
Writing C++ code for image viewers
The music player
Designing a user interface for music players
Writing C++ code for music players
The video player
Designing a user interface for video players
Writing C++ code for video players
Summary
Chapter 14: Qt Quick and QML.
Introduction to Qt Quick and QML
Introducing Qt Quick
Introducing QML
Qt Quick widgets and controls
Qt Quick Designer
Qt Quick layouts
Basic QML scripting
Setting up the project
Summary
Chapter 15: Cross-Platform Development
Understanding compilers
What is a compiler?
Build automation with Make
Build settings
Qt Project (.pro) File
Comment
Modules, configurations, and definitions
Platform-specific settings
Deploying to PC platforms
Windows
Linux
macOS
Deploying to mobile platforms
iOS
Android
Summary
Chapter 16: Testing and Debugging
Debugging techniques
Identifying the problem
Print variables using QDebug
Setting breakpoints
Debuggers supported by Qt
Debugging for PC
Debugging for Android devices
Debugging for macOS and iOS
Unit testing
Unit testing in Qt
Summary
Other Books You May Enjoy
Index.
Title Page
Copyright and Credits
Packt Upsell
Contributors
Table of Contents
Preface
Chapter 1: Introduction to Qt
What is Qt?
Why use Qt?
Discovering tools in Qt
Qt Designer
Qt Quick Designer
Downloading and installing Qt
Setting up the working environment
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
SELECT
INSERT
UPDATE
DELETE
JOIN
Database connection in Qt
Creating our functional login page
Summary
Chapter 4: Graphs and Charts
Types of charts and graphs in Qt
Line and spline charts
Bar charts
Pie charts
Polar charts
Area and scatter charts
Box-and-whiskers charts
Candlestick charts
Implementing charts and graphs
Creating the dashboard page
Summary
Chapter 5: Item Views and Dialogs
Working with item view widgets
Creating our Qt Widgets application
Making our List Widget functional
Adding functionality to the Tree Widget
Finally, our Table Widget
Working with dialog boxes
Creating File Selection Dialogs
Image scaling and cropping
Summary
Chapter 6: Integrating Web Content
Creating your own web browser
Adding the web view widget
Creating a UI for a web browser
Managing browser history
Sessions, cookies, and cache
Managing sessions and cookies
Managing cache
Integrating JavaScript and C++
Calling JavaScript functions from C++
Calling C++ functions from JavaScript
Summary
Chapter 7: Map Viewer
Map display
Setting up the Qt location module
Creating a map display
Marker and shape display.
Displaying position markers on a map
Displaying shapes on a map
Obtaining a user's location
Geo Routing Request
Summary
Chapter 8: Graphics View
Graphics View framework
Setting up a new project
Movable graphics items
Creating an organization chart
Summary
Chapter 9: The Camera Module
The Qt multimedia module
Setting up a new project
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
Connection protocols
Setting up a new project
Creating an instant messaging server
Creating TCP Server
Listening to clients
Creating an instant messaging client
Designing the user interface
Implementing chat features
Summary
Chapter 11: Implementing a Graphics Editor
Drawing vector shapes
Vector versus bitmap
Drawing vector shapes using QPainter
Drawing text
Saving vector images to an SVG File
Creating a paint program
Setting up a user interface
Summary
Chapter 12: Cloud Storage
Setting up the FTP server
Introducing FTP
Downloading FileZilla
Setting up FileZilla
Displaying the file list on the list view
Setting up a project
Setting up user interface
Displaying the file list
Writing the code
Uploading files to the FTP server
Downloading files from the FTP server
Summary
Chapter 13: Multimedia Viewers
Revisiting the multimedia module
Dissecting the module
The image viewer
Designing a user interface for the image viewer
Writing C++ code for image viewers
The music player
Designing a user interface for music players
Writing C++ code for music players
The video player
Designing a user interface for video players
Writing C++ code for video players
Summary
Chapter 14: Qt Quick and QML.
Introduction to Qt Quick and QML
Introducing Qt Quick
Introducing QML
Qt Quick widgets and controls
Qt Quick Designer
Qt Quick layouts
Basic QML scripting
Setting up the project
Summary
Chapter 15: Cross-Platform Development
Understanding compilers
What is a compiler?
Build automation with Make
Build settings
Qt Project (.pro) File
Comment
Modules, configurations, and definitions
Platform-specific settings
Deploying to PC platforms
Windows
Linux
macOS
Deploying to mobile platforms
iOS
Android
Summary
Chapter 16: Testing and Debugging
Debugging techniques
Identifying the problem
Print variables using QDebug
Setting breakpoints
Debuggers supported by Qt
Debugging for PC
Debugging for Android devices
Debugging for macOS and iOS
Unit testing
Unit testing in Qt
Summary
Other Books You May Enjoy
Index.
Source of Description
Online resource; title from title page (Safari, viewed May 24, 2018).
Linked Resources
Record Appears in