As we already know, Qt is much more than a GUI framework. It also contains platform-independent APIs for all the tasks you will probably meet when writing an application. We could paraphrase and assert that Qt truly comes as C++ with batteries included: We get a GUI, graphics, multithreading, networking, string processing, file operations, XML and JSON, and even database connectivity. We already discussed Qt's multithreading and string processing when we introduced general-performance principles. In this chapter, we will turn our attention to more specific topics and explore a mixture of various topics that are loosely related to the I/O problematic, namely the following:
- Reading and writing files in Qt
- Parsing XML and JSON at the speed of light
- Connecting databases
- More about operating system interactions
We...