Fluent-Qt

API reference

ChartModel

Caller-owned XY table model with indexed range queries and batched appends.

fluent::charts::ChartData

An implicitly shared, indexed XY snapshot; safe to prepare away from the GUI thread.

Constructors

Methods

QVector<int> sampledRows(int first, int last, int budget) const

Returns at most budget source rows, preserving bucket endpoints and extrema.

double mean(int first, int last) const

Mean of finite values in a half-open range.

double positiveFraction(int first, int last) const

Positive contribution to the complete series, in [0, 1].

Constants

Destructors

fluent::charts::ChartModel

Inherits QAbstractTableModel

Constructors

Properties

QString name
Read name()Write setName()Notify nameChanged()

Methods

bool setDataSnapshot(const ChartData& snapshot)

Publishes an indexed snapshot without rescanning it.

bool setPoints(const QVector<QPointF>& points, const QStringList& labels = QStringList())

Synchronous convenience for small data; use a prepared snapshot for large data.

bool appendPoints(const QVector<QPointF>& points, const QStringList& labels = QStringList())

Appends a sorted batch with one rowsInserted signal and incremental index updates.

Signals

Destructors

All inherited Qt members:QAbstractTableModel