Qt5 C++ GUI Programming Cookbook

Use Qt5 to design and build a graphical user interface that is functional, appealing, and user-friendly for your software application
Preview in Mapt

Qt5 C++ GUI Programming Cookbook

Lee Zhi Eng

5 customer reviews
Use Qt5 to design and build a graphical user interface that is functional, appealing, and user-friendly for your software application
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 30 Day Trial

Frequently bought together


Qt5 C++ GUI Programming Cookbook Book Cover
Qt5 C++ GUI Programming Cookbook
$ 35.99
$ 25.20
C++ GUI Programming with QT5 Book Cover
C++ GUI Programming with QT5
$ 35.99
$ 25.20
Buy 2 for $35.00
Save $36.98
Add to Cart

Book Details

ISBN 139781783280278
Paperback300 pages

Book Description

With the advancement of computer technology, the software market is exploding with tons of software choices for the user, making their expectations higher in terms of functionality and the look and feel of the application. Therefore, improving the visual quality of your application is vital in order to overcome the market competition and stand out from the crowd.

This book will teach you how to develop functional and appealing software using Qt5 through multiple projects that are interesting and fun. This book covers a variety of topics such as look-and-feel customization, GUI animation, graphics rendering, implementing Google Maps, and more. You will learn tons of useful information, and enjoy the process of working on the creative projects provided in this book.

Table of Contents

Chapter 1: Look and Feel Customization
Introduction
Use style sheets with Qt Designer
Basic style sheet customization
Creating a login screen using style sheets
Using resources in style sheets
Customizing properties and sub-controls
Styling in QML
Exposing QML object pointer to C++
Chapter 2: States and Animations
Introduction
Property animation in Qt
Using easing curves to control property animation
Creating an animation group
Creating a nested animation group
State machines in Qt
States, transitions, and animations in QML
Animating widget properties using animators
Sprite animation
Chapter 3: QPainter and 2D Graphics
Introduction
Drawing basic shapes on screen
Exporting shapes to SVG files
Coordinate transformation
Displaying images on screen
Applying image effects to graphics
Creating a basic paint program
2D canvas in QML
Chapter 4: OpenGL Implementation
Introduction
Setting up OpenGL in Qt
Hello world!
Rendering 2D shapes
Render 3D shapes
Texturing in OpenGL
Lighting and texture filter in OpenGL
Moving an object using keyboard controls
3D canvas in QML
Chapter 5: Building a Touch Screen Application with Qt5
Introduction
Setting up Qt for mobile applications
Designing a basic user interface with QML
Touch events
Animation in QML
Displaying information using Model View
Integrating QML and C++
Chapter 6: XML Parsing Made Easy
Introduction
Processing XML data using stream reader
Writing XML data using Stream Writer
Processing XML data using the QDomDocument class
Writing XML data using the QDomDocument class
Using Google's Geocoding API
Chapter 7: Conversion Library
Introduction
Data conversion
Image conversion
Video conversion
Currency conversion
Chapter 8: Accessing Databases
Introduction
Connecting to a database
Writing basic SQL queries
Creating a login screen with Qt
Displaying information from a database on a model view
Advanced SQL queries
Chapter 9: Developing a Web Application Using Qt Web Engine
Introduction
Introduction to Qt WebEngine
WebView and web settings
Embedding Google Maps in your project
Calling C++ functions from JavaScript
Calling JavaScript functions from C++

What You Will Learn

  • Customize the look and feel of your application using the widget editor provided by Qt5
  • Change the states of the GUI elements to make them appear in a different form
  • Animating the GUI elements using the built-in animation system provided by Qt5
  • Draw shapes and 2D images in your application using Qt5’s powerful rendering system
  • Draw 3D graphics in your application by implementing OpenGL, an industry-standard graphical library to your project
  • Build a mobile app that supports touch events and export it to your device
  • Parse and extract data from an XML file, then present it on your software’s GUI
  • Display web content on your program and interact with it by calling JavaScript functions from C++, or calling C++ functions from the web content
  • Access to MySQL and SQLite databases to retrieve data and display it on your software’s GUI

Authors

Table of Contents

Chapter 1: Look and Feel Customization
Introduction
Use style sheets with Qt Designer
Basic style sheet customization
Creating a login screen using style sheets
Using resources in style sheets
Customizing properties and sub-controls
Styling in QML
Exposing QML object pointer to C++
Chapter 2: States and Animations
Introduction
Property animation in Qt
Using easing curves to control property animation
Creating an animation group
Creating a nested animation group
State machines in Qt
States, transitions, and animations in QML
Animating widget properties using animators
Sprite animation
Chapter 3: QPainter and 2D Graphics
Introduction
Drawing basic shapes on screen
Exporting shapes to SVG files
Coordinate transformation
Displaying images on screen
Applying image effects to graphics
Creating a basic paint program
2D canvas in QML
Chapter 4: OpenGL Implementation
Introduction
Setting up OpenGL in Qt
Hello world!
Rendering 2D shapes
Render 3D shapes
Texturing in OpenGL
Lighting and texture filter in OpenGL
Moving an object using keyboard controls
3D canvas in QML
Chapter 5: Building a Touch Screen Application with Qt5
Introduction
Setting up Qt for mobile applications
Designing a basic user interface with QML
Touch events
Animation in QML
Displaying information using Model View
Integrating QML and C++
Chapter 6: XML Parsing Made Easy
Introduction
Processing XML data using stream reader
Writing XML data using Stream Writer
Processing XML data using the QDomDocument class
Writing XML data using the QDomDocument class
Using Google's Geocoding API
Chapter 7: Conversion Library
Introduction
Data conversion
Image conversion
Video conversion
Currency conversion
Chapter 8: Accessing Databases
Introduction
Connecting to a database
Writing basic SQL queries
Creating a login screen with Qt
Displaying information from a database on a model view
Advanced SQL queries
Chapter 9: Developing a Web Application Using Qt Web Engine
Introduction
Introduction to Qt WebEngine
WebView and web settings
Embedding Google Maps in your project
Calling C++ functions from JavaScript
Calling JavaScript functions from C++

Book Details

ISBN 139781783280278
Paperback300 pages
Read More
From 5 reviews

Read More Reviews

Recommended for You

Mastering Qt 5 Book Cover
Mastering Qt 5
$ 35.99
$ 25.20
Qt 5 Blueprints Book Cover
Qt 5 Blueprints
$ 39.99
$ 28.00
Application Development with Qt Creator - Second Edition Book Cover
Application Development with Qt Creator - Second Edition
$ 26.99
$ 18.90
Modern C++ Programming Cookbook Book Cover
Modern C++ Programming Cookbook
$ 39.99
$ 28.00
Mastering C++ Programming Book Cover
Mastering C++ Programming
$ 39.99
$ 28.00
Python Machine Learning Book Cover
Python Machine Learning
$ 35.99
$ 25.20