##// END OF EJS Templates
Added support for adding and removing data with model. Updated the example
Added support for adding and removing data with model. Updated the example

File last commit:

r545:366c5163e81a
r545:366c5163e81a
Show More
tablewidget.h
39 lines | 701 B | text/x-c | CLexer
#ifndef TABLEWIDGET_H
#define TABLEWIDGET_H
#include <QtGui/QWidget>
#include "qchartview.h"
#include "qxyseries.h"
QTCOMMERCIALCHART_USE_NAMESPACE
class CustomTableModel;
class QTableView;
class QRadioButton;
//class QSeries;
class TableWidget : public QWidget
{
Q_OBJECT
public:
TableWidget(QWidget *parent = 0);
~TableWidget();
public slots:
void addRow();
void removeRow();
void updateChartType();
private:
QChartView* chartView;
QXYSeries* series;
CustomTableModel* m_model;
QTableView* tableView;
QRadioButton* lineRadioButton;
QRadioButton* splineRadioButton;
QRadioButton* scatterRadioButton;
};
#endif // TABLEWIDGET_H