QScatterDataProxy#

The QScatterDataProxy class is the data proxy for 3D scatter graphs. More

Inheritance diagram of PySide6.QtDataVisualization.QScatterDataProxy

Inherited by: QItemModelScatterDataProxy

Synopsis#

Properties#

  • itemCount - Number of items in the array

  • series - This proxy is attached to

Functions#

Signals#

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description#

A scatter data proxy handles adding, inserting, changing, and removing data items.

QScatterDataProxy takes ownership of all QtDataVisualization::QScatterDataArray and QScatterDataItem objects passed to it.

class PySide6.QtDataVisualization.QScatterDataProxy([parent=None])#
Parameters:

parentPySide6.QtCore.QObject

Constructs QScatterDataProxy with the given parent.

Note

Properties can be used directly when from __feature__ import true_property is used or via accessor functions otherwise.

property PᅟySide6.QtDataVisualization.QScatterDataProxy.itemCount: int#

This property holds The number of items in the array..

Access functions:
property PᅟySide6.QtDataVisualization.QScatterDataProxy.series: PySide6.QtDataVisualization.QScatter3DSeries#

This property holds The series this proxy is attached to..

Access functions:
PySide6.QtDataVisualization.QScatterDataProxy.addItem(item)#
Parameters:

itemPySide6.QtDataVisualization.QScatterDataItem

Return type:

int

Adds the item item to the end of the array.

Returns the index of the added item.

PySide6.QtDataVisualization.QScatterDataProxy.addItems(items)#
Parameters:

items

Return type:

int

Adds the items specified by items to the end of the array.

Returns the index of the first added item.

PySide6.QtDataVisualization.QScatterDataProxy.array()#
Return type:

QList

Returns the pointer to the data array.

PySide6.QtDataVisualization.QScatterDataProxy.arrayReset()#

This signal is emitted when the data array is reset. If the contents of the whole array are changed without calling resetArray() , this signal needs to be emitted to update the graph.

PySide6.QtDataVisualization.QScatterDataProxy.insertItem(index, item)#
Parameters:

Inserts the item item to the position index. If the index is equal to the data array size, the item is added to the array.

PySide6.QtDataVisualization.QScatterDataProxy.insertItems(index, items)#
Parameters:
  • index – int

  • items

Inserts the items specified by items to the position index. If the index is equal to data array size, the items are added to the array.

PySide6.QtDataVisualization.QScatterDataProxy.itemAt(index)#
Parameters:

index – int

Return type:

PySide6.QtDataVisualization.QScatterDataItem

Returns the pointer to the item at the index index. It is guaranteed to be valid only until the next call that modifies data.

PySide6.QtDataVisualization.QScatterDataProxy.itemCount()#
Return type:

int

Getter of property itemCount .

PySide6.QtDataVisualization.QScatterDataProxy.itemCountChanged(count)#
Parameters:

count – int

Notification signal of property itemCount .

PySide6.QtDataVisualization.QScatterDataProxy.itemsAdded(startIndex, count)#
Parameters:
  • startIndex – int

  • count – int

This signal is emitted when the number of items specified by count is added starting at the position startIndex. If items are added to the array without calling addItem() or addItems() , this signal needs to be emitted to update the graph.

PySide6.QtDataVisualization.QScatterDataProxy.itemsChanged(startIndex, count)#
Parameters:
  • startIndex – int

  • count – int

This signal is emitted when the number of items specified by count is changed starting at the position startIndex. If items are changed in the array without calling setItem() or setItems() , this signal needs to be emitted to update the graph.

PySide6.QtDataVisualization.QScatterDataProxy.itemsInserted(startIndex, count)#
Parameters:
  • startIndex – int

  • count – int

This signal is emitted when the number of items specified by count is inserted starting at the position startIndex. If items are inserted into the array without calling insertItem() or insertItems() , this signal needs to be emitted to update the graph.

PySide6.QtDataVisualization.QScatterDataProxy.itemsRemoved(startIndex, count)#
Parameters:
  • startIndex – int

  • count – int

This signal is emitted when the number of rows specified by count is removed starting at the position startIndex. The index may be larger than the current array size if items are removed from the end. If items are removed from the array without calling removeItems() , this signal needs to be emitted to update the graph.

PySide6.QtDataVisualization.QScatterDataProxy.removeItems(index, removeCount)#
Parameters:
  • index – int

  • removeCount – int

Removes the number of items specified by removeCount starting at the position index. Attempting to remove items past the end of the array does nothing.

PySide6.QtDataVisualization.QScatterDataProxy.resetArray(arg__1)#
Parameters:

arg__1QList

PySide6.QtDataVisualization.QScatterDataProxy.series()#
Return type:

PySide6.QtDataVisualization.QScatter3DSeries

Getter of property series .

PySide6.QtDataVisualization.QScatterDataProxy.seriesChanged(series)#
Parameters:

seriesPySide6.QtDataVisualization.QScatter3DSeries

Notification signal of property series .

PySide6.QtDataVisualization.QScatterDataProxy.setItem(index, item)#
Parameters:

Replaces the item at the position index with the item item.

PySide6.QtDataVisualization.QScatterDataProxy.setItems(index, items)#
Parameters:
  • index – int

  • items

Replaces the items starting from the position index with the items specified by items.