##// END OF EJS Templates
Proof-of-concept for QML api...
Proof-of-concept for QML api Line, scatter and pie series now shown on a QML app. Uses hard-coded test data.

File last commit:

r13:335e8906dfcb
r120:c64ea33f6f52
Show More
qscatterseries.h
27 lines | 566 B | text/x-c | CLexer
#ifndef QSCATTERSERIES_H
#define QSCATTERSERIES_H
#include <QGraphicsItem>
// TODO:
#define QChartDataPoint QList<QVariant>
class QSeriesPointGraphicsItem;
class QScatterSeries : public QGraphicsItem
{
public:
QScatterSeries(QGraphicsItem *parent = 0);
void setData(QList<QChartDataPoint> data);
// void setData(QList<int> data);
signals:
public slots:
public:
QRectF boundingRect() const;
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
};
#endif // QSCATTERSERIES_H