Use Qt5 to design and build a graphical user interface that is functional, appealing, and user-friendly for your software applicationAbout This Book⢠Learn to make use of Qt5 to design and customize the look-and-feel of your application⢠Improve the visual quality of your application by utilizing the graphic rendering system and animation system provided by Qt5⢠A good balance of visual presentation and its contents will make an application appealing yet functionalWho This Book Is ForThis book intended for those who want to develop software using Qt5. If you want to improve the visual quality and content presentation of your software application, this book is best suited to you.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 GUIIn DetailWith 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.Style and approachThis book focuses on customizing the look and feel and utilizing the graphical features provided by Qt5. It takes a step-by-step approach, providing tons of screenshots and sample code for you to follow and learn. Each topic is explained sequentially and placed in context.

- 300 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
eBook - ePub
Qt5 C++ GUI Programming Cookbook
About this book
Trusted byĀ 375,005 students
Access to over 1.5 million titles for a fair monthly price.
Study more efficiently using our study tools.
Information
Qt5 C++ GUI Programming Cookbook
Table of Contents
Qt5 C++ GUI Programming Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
eBooks, discount offers, and more
Why Subscribe?
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
See also
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Look and Feel Customization
Introduction
Use style sheets with Qt Designer
How to do itā¦
How it works...
There's moreā¦
Basic style sheet customization
How to do itā¦
How it works...
Creating a login screen using style sheets
How to do itā¦
How it works...
Using resources in style sheets
How to do it
How it works...
Customizing properties and sub-controls
How to do itā¦
How it works...
Styling in QML
How to do itā¦
How it works...
Exposing QML object pointer to C++
How to do itā¦
How it works...
2. States and Animations
Introduction
Property animation in Qt
How to do itā¦
How it works...
There's moreā¦
Using easing curves to control property animation
How to do itā¦
How it works...
There's moreā¦
Creating an animation group
How to do itā¦
How it works...
There's moreā¦
Creating a nested animation group
How to do itā¦
How it works...
State machines in Qt
How to do itā¦
How it works...
There's moreā¦
States, transitions, and animations in QML
How to do itā¦
How it works...
There's moreā¦
Animating widget properties using animators
How to do itā¦
How it works...
Sprite animation
How to do itā¦
How it works...
There's moreā¦
3. QPainter and 2D Graphics
Introduction
Drawing basic shapes on screen
How to do itā¦
How it works...
There's moreā¦
Exporting shapes to SVG files
How to do itā¦
How it works...
There's moreā¦
Coordinate transformation
How to do itā¦
How it works...
There's moreā¦
Displaying images on screen
How to do itā¦
How it works...
There's moreā¦
Applying image effects to graphics
How to do itā¦
How it works...
There's moreā¦
Creating a basic paint program
How to do itā¦
How it works...
2D canvas in QML
How to do itā¦
4. OpenGL Implementation
Introduction
Setting up OpenGL in Qt
How to do itā¦
How it works...
There's moreā¦
Hello world!
How to do itā¦
How it works...
Rendering 2D shapes
How to do itā¦
How it works...
Render 3D shapes
How to do itā¦
How it works...
Texturing in OpenGL
How to do itā¦
How it works...
Lighting and texture filter in OpenGL
How to do itā¦
How it works...
There's moreā¦
Moving an object using keyboard controls
How to do itā¦
How it works...
3D canvas in QML
How to do itā¦
How it works...
5. Building a Touch Screen Application with Qt5
Introduction
Setting up Qt for mobile applications
How to do itā¦
How it worksā¦
Designing a basic user interface with QML
How to do itā¦
How it worksā¦
Touch events
How to do itā¦
How it worksā¦
There's moreā¦
Animation in QML
How to do itā¦
How it worksā¦
Displaying information using Model View
How to do itā¦
How it worksā¦
Integrating QML and C++
How to do itā¦
How it worksā¦
6. XML Parsing Made Easy
Introduction
Processing XML data using stream reader
How to do itā¦
How it worksā¦
There's moreā¦
Writing XML data using Stream Writer
How to do itā¦
How it worksā¦
Processing XML data using the QDomDocument class
How to do itā¦
How it worksā¦
Writing XML data using the QDomDocument class
How to do itā¦
How it worksā¦
Using Google's Geocoding API
How to do itā¦
How it worksā¦
There's moreā¦
7. Conversion Library
Introduction
Data conversion
How to do itā¦
How it works...
There's moreā¦
Image conversion
How to do itā¦
How it works...
There's moreā¦
Video conversion
How to do itā¦
How it works...
There's moreā¦
Currency conversion
How to do itā¦
How it works...
There's moreā¦
8. Accessing Databases
Introduction
How to do itā¦
How it worksā¦
Connecting to a database
How to do itā¦
How it worksā¦
Writing basic SQL queries
How to do itā¦
How it worksā¦
Creating a login screen with Qt
How to do itā¦
How it worksā¦
Displaying information from a database on a model view
How to do itā¦
How it worksā¦
Advanced SQL queries
How to do itā¦
How it worksā¦
There's moreā¦
9. Developing a Web Application Using Qt Web Engine
Introduction
Introduction to Qt WebEngine
How to do itā¦
How it worksā¦
There's moreā¦
WebView and web settings
How to do itā¦
How it worksā¦
Embedding Google Maps in your project
How to do itā¦
How it worksā¦
Calling C++ functions from JavaScript
How to do itā¦
How it worksā¦
Calling JavaScript functions from C++
How to do itā¦
How it worksā¦
Index
Qt5 C++ GUI Programming Cookbook
Copyright Ā© 2016 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 author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be 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. Ho...
Table of contents
- Qt5 C++ GUI Programming Cookbook
Frequently asked questions
Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.5M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1.5 million books across 990+ topics, weāve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere ā even offline. Perfect for commutes or when youāre on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Qt5 C++ GUI Programming Cookbook by Lee Zhi Eng in PDF and/or ePUB format, as well as other popular books in Computer Science & Object Oriented Programming. We have over 1.5 million books available in our catalogue for you to explore.