##// 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
Marek Rosa
Table model data example
r519 #ifndef TABLEWIDGET_H
#define TABLEWIDGET_H
#include <QtGui/QWidget>
#include "qchartview.h"
Marek Rosa
Added support for adding and removing data with model. Updated the example
r545 #include "qxyseries.h"
Marek Rosa
Table model data example
r519
QTCOMMERCIALCHART_USE_NAMESPACE
Marek Rosa
Added support for adding and removing data with model. Updated the example
r545 class CustomTableModel;
class QTableView;
class QRadioButton;
//class QSeries;
Marek Rosa
Table model data example
r519 class TableWidget : public QWidget
{
Q_OBJECT
public:
TableWidget(QWidget *parent = 0);
~TableWidget();
Marek Rosa
Added support for adding and removing data with model. Updated the example
r545 public slots:
void addRow();
void removeRow();
void updateChartType();
Marek Rosa
Table model data example
r519
private:
QChartView* chartView;
Marek Rosa
Added support for adding and removing data with model. Updated the example
r545 QXYSeries* series;
CustomTableModel* m_model;
QTableView* tableView;
QRadioButton* lineRadioButton;
QRadioButton* splineRadioButton;
QRadioButton* scatterRadioButton;
Marek Rosa
Table model data example
r519 };
#endif // TABLEWIDGET_H