Qt Line graph

The project implements the interaction between QTableView, QAbstractItemModel and SqlDatabase. The data is stored in sql tables, QAbstractItemModel allows to transpose a vertical table and QTableView displays the finished data horizontally.

Tabs are implemented via QTabWidget + QTabBar + a custom class for displaying within a tab. Tab names are stored in a separate table.

Features

  • Renaming and saving the tab name
  • Linking tab names and legend in the diagram
  • Selecting and loading a specific table from DB

Todo

  • Ability to add and save data manually
  • Changing the color of lines on the chart and in tabBar

Screenshots

Main window table selection widget Full

Video

Video demo