CustomSeries QML Type
The CustomSeries type allows presenting customized graph types. More...
| Import Statement: | import QtGraphs |
| Since: | Qt 6.11 |
| In C++: | QCustomSeries |
Properties
- delegate : Component
Methods
- append()
- append(var data)
- clear()
- insert(int index)
- insert(int index, var data)
- mapX(real x)
- mapY(real y)
- remove(int index)
Detailed Description
Property Documentation
delegate : Component
The delegate is used to insert elements to QML corresponding to provided custom data. Data is defined in the the CustomSeries itself and given to the delegated elements through the "data" property.
delegate: Rectangle {
property var data
Rectangle {
color: "tan"
border.color: "black"
border.width: 4
y: series.mapY(data.index + 1) - height / 2 + 1
x: series.mapX(data.median) - width / 2
height: 32
width: Math.abs(series.mapX(data.upperQuartile) - series.mapX(data.lowerQuartile))
}
}
}Method Documentation
append()
Appends an empty data item to the series.
append(var data)
Appends a data item defined by data to the series.
clear()
Clear all data items.
insert(int index)
Appends an empty data item to the series at position index.
insert(int index, var data)
Appends a data item defined by data to the series at position index.
mapX(real x)
Returns x axis-space coordinate converted into render-space.
mapY(real y)
Returns y axis-space coordinate converted into render-space.
remove(int index)
Remove a data item at position index.
© 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.