# Mastering Qt 5 - Second Edition (August 2018)
<a href="https://www.packtpub.com/web-development/mastering-qt-5-second-edition"><img src="https://github.com/PacktPublishing/Mastering-Qt-5-Second-Editon/blob/master/media/mastering-qt5-2nd_cover.jpg?raw=true" alt="" width="300" height="370" align="right"></a>
This is the code repository for [Mastering Qt 5 - Second Edition](https://www.packtpub.com/web-development/mastering-qt-5-second-edition), published by Packt.
**Create stunning cross-platform applications using C++ with Qt Widgets and QML with Qt Quick**
## Book editions
* [Mastering Qt 5 - First Edition](https://github.com/PacktPublishing/Mastering-Qt-5)
* [Mastering Qt 5 - Second Edition](https://github.com/PacktPublishing/Mastering-Qt-5-Second-Editon)
## What is this book about?
Qt 5.11 is an app development framework that provides a great user experience and develops full capability applications with Qt Widgets, QML, and even Qt 3D. Whether you're building GUI prototypes or fully-fledged cross-platform GUI applications with a native look and feel, Mastering Qt 5 is your fastest, easiest, and most powerful solution. This book addresses various challenges and teaches you to successfully develop cross-platform applications using the Qt framework, with the help of well-organized projects.
This book covers the following exciting features:
* Create stunning UIs with Qt Widgets and Qt Quick 2
* Develop powerful, cross-platform applications with the Qt framework
* Design GUIs with the Qt Designer and build a library in it for UI previews
* Handle user interaction with the Qt signal or slot mechanism in C++
* Prepare a cross-platform project to host a third-party library
If you feel this book is for you, get your [copy](https://www.amazon.com/dp/1788995392) today!
<a href="https://www.packtpub.com/?utm_source=github&utm_medium=banner&utm_campaign=GitHubBanner"><img src="https://raw.githubusercontent.com/PacktPublishing/GitHub/master/GitHub.png"
alt="https://www.packtpub.com/" border="5" /></a>
## Errata
Official Packt errata page is https://www.packtpub.com/books/content/support/33683
### Chapter 2
* Page 42. `ULARGE_INTEGER` is a union, not a structure.
* Page 49. You should include "#include <stdio.h>" if you have some compilation errors with `std:sscanf()` in the "SysInfoLinuxImpl.cpp" file.
* Page 64. The sentence should be: "mPointPositionX is a long long int variable (qint64)".
### Chapter 3
* Page 83. The unix platform scope could be generated for a 'library' Qt project, even if you create the project from a Windows desktop.
* Page 87. The `GALLERYCORESHARED_EXPORT` macro must be added right *AFTER* the 'class' keyword (not before).
* Page 93. It's `QSqlQuery::bindValue()`, not `QSqlQuery::bind()`.
* Page 112. The `endRemoveRows()` function, which simply triggers the `rowsRemoved()` signal.
### Chapter 4
* Fix Album model index (trigger ASSERT on Windows DEBUG platform). Check [PR #1](https://github.com/PacktPublishing/Mastering-Qt-5-Second-Editon/pull/1) (thanks @ziembla)
### Chapter 5
* Qt for Android >= 5.14 now use Android clang multi ABI that broke the APK generation. Check [First edition Issue #13](https://github.com/PacktPublishing/Mastering-Qt-5/issues/13)
## Instructions and Navigations
All of the code is organized into folders. For example, Chapter02.
The code will look like the following:
```
void MemoryWidget::updateSeries()
{
double memoryUsed = SysInfo::instance().memoryUsed();
mSeries->append(mPointPositionX++, memoryUsed);
if (mSeries->count() > CHART_X_RANGE_COUNT) {
QChart* chart = chartView().chart();
chart->scroll(chart->plotArea().width()
/ CHART_X_RANGE_MAX, 0);
mSeries->remove(0);
}
}
```
**Following is what you need for this book:**
Mastering Qt 5 is for developers and programmers who want to build GUI-based applications. C++ knowledge is necessary, and knowing Qt basics will help you get the most out of this book.
With the following software and hardware list you can run all code files present in the book (Chapter 1-14).
### Software and Hardware List
| Chapter | Software and Hardware required | OS required |
| -------- | ------------------------------------ | -----------------------------------|
| 1 to 14 | Qt 5.11, Xcode, Android SDK, Raspbian | Windows, Mac OS X, and Linux (Any) |
| 5 and 13 | Xcode, Android SDK | Windows, Mac OS X, and Linux (Any) |
| 6 | Raspbian, Raspberry Pi 3 | Windows, Mac OS X, and Linux (Any) |
### Related products <Other books you may enjoy>
* Qt 5 Projects [[Packt]](https://www.packtpub.com/application-development/qt-5-projects?utm_source=github&utm_medium=repository&utm_campaign=9781788293884) [[Amazon]](https://www.amazon.com/dp/1788293886)
* Learn Qt 5 [[Packt]](https://www.packtpub.com/web-development/learn-qt-5?utm_source=github&utm_medium=repository&utm_campaign=9781788478854) [[Amazon]](https://www.amazon.com/dp/1788478851)
## Get to Know the Authors
**Guillaume Lazar** is a software engineer living in France near Paris. He has worked in different companies, from startups to multinationals, in the last 10 years. He took the opportunity to observe and learn many team organizations and technologies.
In 2014, he founded his own software development company at the age of 27. The current hierarchical organization that applies to most companies seems obsolete to him. With his own company, he wants to try a different approach.
Although he defines himself as a Qt framework lover, he likes to mix different technologies and platforms. He also spends time on game development, machine learning, and electronics, because "things" become "alive".
**Robin Penea** has been working in the software industry for a more than a decade. He worked in startups and large companies with many technologies that ranged from embedded software to web development. Armed with this experience, he wrote the Mastering Qt 5 book to spread what he loves the most about the programming craft : proper design and quality code.The teaching bug has bitten him, and he continues to share what he learned online using videos. When he is not tinkering with some new technology, he either on a wall, rock-climbing or playing music on his piano. You can reach him via Twitter @synapticrob.
## Other books by the authors
* [Mastering Qt 5 - First Edition](https://www.packtpub.com/application-development/mastering-qt-5?utm_source=github&utm_medium=repository&utm_campaign=9781786467126)
### Suggestions and Feedback
[Click here](https://docs.google.com/forms/d/e/1FAIpQLSdy7dATC6QmEL81FIUuymZ0Wy9vH1jHkvpY57OiMeKGqib_Ow/viewform) if you have any feedback or suggestions.
simon73401
- 粉丝: 0
- 资源: 3
最新资源
- ks滑块加密算法与源代码
- 医护人员检测23-YOLOv8数据集合集.rar
- 1.电力系统短路故障引起电压暂降 2.不对称短路故障分析 包括:共两份自编word+相应matlab模型 1.短路故障的发生频次以及不同类型短路故障严重程度,本文选取三类典型的不对称短路展开研究
- C#连接sap NCO组件 X64版
- 开源基于51单片机的多功能智能闹钟设计,课设毕设借鉴参考
- 深度强化学习电气工程复现文章,适合小白学习 关键词:能量管理 深度学习 强化学习 深度强化学习 能源系统 优化调度 编程语言:python平台 主题:用于能源系统优化调度的深度强化学习算法的性能比较
- 泰州市2005-2024年近20年历史气象数据下载
- 盐城市2005-2024年近20年历史气象数据下载
- 连云港市2005-2024年近20年历史气象数据下载
- 南通市2005-2024年近20年历史气象数据下载
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈