Graphs and Charts

In the previous chapter, we learned how to retrieve data from a database using Qt's sql module. There are many ways to present this data to the users, such as displaying it in the form of tables or diagrams. In this chapter, we will learn how to do the latterpresenting data with different types of graphs and charts using Qt's charts module.

In this chapter, we will cover the following topics:

  • Types of charts and graphs in Qt
  • Charts and graphs implementation
  • Creating the dashboard page

Since Qt 5.7, several modules that were only available for commercial users before have become free for all the open source package users, which includes the Qt Charts module. Therefore, it is considered a very new module for most Qt users ...

Get Hands-On GUI Programming with C++ and Qt5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.