- Game Programming using Qt 5 Beginner's Guide
- Pavel Strakhov Witold Wysota Lorenz Haas
- 144字
- 2021-08-27 18:31:15
Qt Core Essentials
This chapter will help you master Qt ways of basic data processing and storage. First of all, you will learn how to handle textual data and how to match text against regular expressions. Next, we will provide an overview of Qt containers and describe common pitfalls related to them. Then, you will see how to store and fetch data from files and how to use different storage formats for text and binary data. By the end of this chapter, you will be able to implement non-trivial logic and data processing in your games efficiently. You will also know how to load external data in your games and how to save your own data in permanent storage for future use.
Main topics covered in this chapter:
- Text handling
- Qt containers
- Serialization to INI, JSON, XML, and binary data
- Saving the application's settings