##// 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
Tero Ahola
Drafting scatter type plotting...
r8 #ifndef QSCATTERSERIES_H
#define QSCATTERSERIES_H
#include <QGraphicsItem>
Tero Ahola
Scatter data point now shown using a picture
r13 // TODO:
#define QChartDataPoint QList<QVariant>
class QSeriesPointGraphicsItem;
Tero Ahola
Drafting scatter type plotting...
r8 class QScatterSeries : public QGraphicsItem
{
public:
Tero Ahola
Scatter data point now shown using a picture
r13 QScatterSeries(QGraphicsItem *parent = 0);
void setData(QList<QChartDataPoint> data);
// void setData(QList<int> data);
Tero Ahola
Drafting scatter type plotting...
r8
signals:
public slots:
Tero Ahola
Scatter data point now shown using a picture
r13 public:
Tero Ahola
Drafting scatter type plotting...
r8 QRectF boundingRect() const;
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
};
#endif // QSCATTERSERIES_H