The 'Big Picture'Jump
to comments or Add a new
comment
The chart program allows users to create, save, load and
visualise simple data sets. Each data element that the user enters can be
given a color and pattern for the pie segment or bar, some label text and
the text's position and color. The Element class is used to
represent data elements.
The program consists of a simple main.cpp that loads the chart
form. The chart form has a menubar and toolbar which provide access to the
program's functionality. The program provides two dialogs, one to set
options, and the other to create and edit a data set. Both dialogs are
launched from chart form menu options or toolbar buttons.
The chart form's main widget is a QCanvasView
which displays the QCanvas on
which we draw the pie chart or bar graph. We subclass QCanvasView to
obtain some specialised behaviour. Similarly we subclass the QCanvasText
class (used to place text items on a canvas) since we require slightly
more than the standard class provides.
The project file, chart.pro, is used to create the Makefile
that is used to build the application.
«
Introduction | Contents
| Data
Elements »
Comments are owned by the poster. For suggestions and
info, contact the webmaster.
|