QCustomSeries Class
The QCustomSeries class allows presenting customized graph types. More...
| Header: | #include <QCustomSeries> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Graphs)target_link_libraries(mytarget PRIVATE Qt6::Graphs) |
| qmake: | QT += graphs |
| Since: | Qt 6.11 |
| In QML: | CustomSeries |
| Inherits: | QAbstractSeries |
Public Functions
| void | append() |
| void | append(QVariantMap data) |
| void | clear() |
| QQmlComponent * | delegate() const |
| void | insert(qsizetype index) |
| void | insert(qsizetype index, QVariantMap data) |
| qreal | mapX(qreal x) |
| qreal | mapY(qreal y) |
| void | remove(qsizetype index) |
| void | setDelegate(QQmlComponent *newDelegate) |
Reimplemented Public Functions
| virtual QAbstractSeries::SeriesType | type() const override |
Signals
| void | delegateChanged() |
Protected Functions
| virtual void | updateDelegate(QQuickItem *item, qsizetype index) |
Reimplemented Protected Functions
| virtual void | componentComplete() override |
Member Function Documentation
[invokable] void QCustomSeries::append()
Appends an empty data item to the series.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
[invokable] void QCustomSeries::append(QVariantMap data)
Appends a data item defined by data to the series.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
[invokable] void QCustomSeries::clear()
Clear all data items.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
[invokable] void QCustomSeries::insert(qsizetype index)
Appends an empty data item to the series at position index.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
[invokable] void QCustomSeries::insert(qsizetype index, QVariantMap data)
Appends a data item defined by data to the series at position index.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
[invokable] qreal QCustomSeries::mapX(qreal x)
Returns x axis-space coordinate converted into render-space.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
[invokable] qreal QCustomSeries::mapY(qreal y)
Returns y axis-space coordinate converted into render-space.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
[invokable] void QCustomSeries::remove(qsizetype index)
Remove a data item at position index.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
[virtual protected] void QCustomSeries::updateDelegate(QQuickItem *item, qsizetype index)
Called by the graph renderer to give access to the item representing the data, and the index corresponding to the data item.
Override to implement custom property values for QQuickItem instance(s).
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.