This chapter addresses the issue of creating a cross-platform application that relies on platform-specific code. We will see the impact of qmake on the compilation of your project.
You will learn how to create a system-monitoring application that retrieves the average CPU load and the memory used from Windows, Linux, and macOS. For this kind of OS-dependent application, architecture is the key to keeping your application reliable and maintainable.
By the end of this chapter, you will be able to create and organize a cross-platform application that uses platform-specific code and displays Qt Charts widgets. Moreover, qmake will not be a mystery anymore.
This chapter covers the following topics:
- Designing a cross-platform project
- Exploring Qt Charts
- The .pro file in depth
- Under the hood of qmake