QScatter3DSeries Class

The QScatter3DSeries class represents a data series in a 3D scatter graph. More...

Header: #include <QScatter3DSeries>
CMake: find_package(Qt6 REQUIRED COMPONENTS DataVisualization)
target_link_libraries(mytarget PRIVATE Qt6::DataVisualization)
qmake: QT += datavisualization
Since: QtDataVisualization 1.0
Instantiated By: Scatter3DSeries
Inherits: QAbstract3DSeries

Properties

Public Functions

virtual ~QScatter3DSeries()
QScatterDataProxy *dataProxy() const
float itemSize() const
int selectedItem() const
void setDataProxy()
void setItemSize()
void setSelectedItem()

Signals

Static Public Members

Detailed Description

This class manages the series specific visual elements, as well as the series data (via a data proxy).

If no data proxy is set explicitly for the series, the series creates a default proxy. Setting another proxy will destroy the existing proxy and all data added to it.

QScatter3DSeries supports the following format tags for QAbstract3DSeries::setItemLabelFormat():

@xTitleTitle from x-axis
@yTitleTitle from y-axis
@zTitleTitle from z-axis
@xLabelItem value formatted using the format of the x-axis. For more information, see QValue3DAxis::setLabelFormat().
@yLabelItem value formatted using the format of the y-axis. For more information, see QValue3DAxis::setLabelFormat().
@zLabelItem value formatted using the format of the z-axis. For more information, see QValue3DAxis::setLabelFormat().
@seriesNameName of the series

For example:

 proxy->setItemLabelFormat(QStringLiteral("@valueTitle for (@rowLabel, @colLabel): %.1f"));

See also Qt Data Visualization Data Handling.

Property Documentation

dataProxy : QScatterDataProxy*

This property holds the active data proxy.

Access functions:

QScatterDataProxy *dataProxy() const
void setDataProxy()

Notifier signal:

void dataProxyChanged()

itemSize : float

Item size for the series.

The size must be between 0.0f and 1.0f. Setting the size to 0.0f causes the item size to be automatically scaled based on the total number of items in all the series for the graph.

The preset default is 0.0f.

Access functions:

float itemSize() const
void setItemSize()

Notifier signal:

void itemSizeChanged()

selectedItem : int

This property holds the item that is selected in the series.

Access functions:

int selectedItem() const
void setSelectedItem()

Notifier signal:

void selectedItemChanged()

Member Function Documentation

[virtual] QScatter3DSeries::~QScatter3DSeries()

Deletes the scatter 3D series.

[static] int QScatter3DSeries::invalidSelectionIndex()

Returns an invalid index for selection. This index is set to the selectedItem property to clear the selection from this series.

See also QAbstract3DGraph::clearSelection().