Qt 5 Blueprints

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

Design, build, and deploy cross-platform GUI projects using the amazingly powerful Qt 5 framework

In Detail

Qt is a cross-platform application development framework that provides great visual interfaces for users and intuitive APIs for developers. The current version, Qt 5, provides enormous modules, from threading to interface animations, to ease your pain when developing cross-platform applications.

Starting with the basic concepts and fundamentals of Qt 5, Qt 5 Blueprints helps you get familiarized with the layouts and widgets of Qt as you build and debug a test application in Qt Creator. You will pick up the Qt design philosophy throughout the book, which will definitely help you to script your code in a more elegant manner.

What You Will Learn

  • Create graphical user interface applications with a customized layout and widgets
  • Explore how the Model-View-Controller architecture works and relevant classes in Qt
  • Develop a configurable application that is able to save and restore its own settings
  • Write both static and dynamic plugins for Qt Widgets and Qt Quick applications
  • Convert your single-threaded application to a nonblocking application by moving part of the application to another thread
  • Enable your applications to support other languages dynamically

Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

Author(s): Symeon Huang
Edition: 1
Publisher: Packt Publishing
Year: 2015

Language: English
Commentary: Converted
Pages: 272
City: Birmingham
Tags: Programming;Qt5;C++;CPP;GUI;User Interface

1: Creating Your First Qt Application
Creating a new project
Changing the layout of widgets
Understanding the mechanism of signals and slots
Connecting two signals
Creating a Qt Quick application
Connecting C++ slots to QML signals
Summary

2: Building a Beautiful Cross-platform Clock
Creating a basic digital clock
Tweaking the digital clock
Saving and restoring settings
Building on the Unix platforms
Summary

3: Cooking an RSS Reader with Qt Quick
Understanding model and view
Parsing RSS Feeds by XmlListModel
Tweaking the categories
Utilizing ScrollView
Adding BusyIndicator
Making a frameless window
Debugging QML
Summary

4: Controlling Camera and Taking Photos
Accessing the camera in Qt
Controlling the camera
Displaying errors on the status bar
Permanent widgets in the status bar
Utilizing the menu bar
Using QFileDialog
QML camera
Summary

5: Extending Paint Applications with Plugins
Drawing via QPainter
Writing static plugins
Writing dynamic plugins
Merging plugins and main program projects
Creating a C++ plugin for QML applications
Summary

6: Getting Wired and Managing Downloads
Introducing Qt network programming
Utilizing QNetworkAccessManager
Making use of the progress bar
Writing multithreaded applications
Managing a system network session
Summary

7: Parsing JSON and XML Documents to Use Online APIs
Setting up Qt for Android
Parsing JSON results
Parsing XML results
Building Qt applications for Android
Parsing JSON in QML
Summary

8: Enabling Your Qt Application to Support Other Languages
Internationalization of Qt applications
Translating Qt Widgets applications
Disambiguating identical texts
Changing languages dynamically
Translating Qt Quick applications
Summary

9: Deploying Applications on Other Devices
Releasing Qt applications on Windows
Creating an installer
Packaging Qt applications on Linux
Deploying Qt applications on Android
Summary

10: Don't Panic When You Encounter These Issues
Commonly encountered issues
Debugging Qt applications
Debugging Qt Quick applications
Useful resources
Summary