##// END OF EJS Templates
Scatter data point now shown using a picture
Scatter data point now shown using a picture

File last commit:

r13:335e8906dfcb
r13:335e8906dfcb
Show More
qchartwidget.h
33 lines | 629 B | text/x-c | CLexer
#ifndef QCHARTWIDGET_H
#define QCHARTWIDGET_H
#include <QWidget>
class QGraphicsView;
class QGraphicsScene;
class QScatterSeries;
// TODO:
#define QChartDataPoint QList<QVariant>
class QChartWidget : public QWidget
{
Q_OBJECT
public:
explicit QChartWidget(QWidget *parent = 0);
~QChartWidget();
void setType(/*TODO QChart::Type*/ int type);
void setData(QList<QChartDataPoint> data);
// void setData(QList<int> data);
signals:
public slots:
private:
QGraphicsView *m_view;
QGraphicsScene *m_scene;
QScatterSeries *m_scatter;
};
#endif // QCHARTWIDGET_H