万本电子书0元读

万本电子书0元读

顶部广告

Hands-On GUI Programming with C++ and Qt5电子书

售       价:¥

18人正在读 | 0人评论 9.8

作       者:Lee Zhi Eng

出  版  社:Packt Publishing

出版时间:2018-04-27

字       数:32.0万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
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 building real-world cross-platform GUI applications
目录展开

Title Page

Copyright and Credits

Hands-On GUI Programming with C++ and Qt5

Packt Upsell

Why subscribe?

PacktPub.com

Contributors

About the author

About the reviewer

Packt is searching for authors like you

Preface

Who this book is for

What this book covers

To get the most out of this book

Download the example code files

Download the color images

Conventions used

Get in touch

Reviews

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

Qt Widgets and Style Sheets

Introduction to Qt Designer

Basic Qt widgets

Qt Style Sheets

Summary

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

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

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

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

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

Graphics View

Graphics View framework

Setting up a new project

Movable graphics items

Creating an organization chart

Summary

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

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

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

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

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

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

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

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

Leave a review - let other readers know what you think

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部