QScatterDataProxy¶
The QScatterDataProxy
class is the data proxy for 3D scatter graphs. More…
Inherited by: QItemModelScatterDataProxy
Synopsis¶
Functions¶
def
addItem
(item)def
addItems
(items)def
array
()def
insertItem
(index, item)def
insertItems
(index, items)def
itemAt
(index)def
itemCount
()def
removeItems
(index, removeCount)def
resetArray
(newArray)def
series
()def
setItem
(index, item)def
setItems
(index, items)
Signals¶
def
arrayReset
()def
itemCountChanged
(count)def
itemsAdded
(startIndex, count)def
itemsChanged
(startIndex, count)def
itemsInserted
(startIndex, count)def
itemsRemoved
(startIndex, count)def
seriesChanged
(series)
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.
See also
- class PySide6.QtDataVisualization.QScatterDataProxy([parent=None])¶
- Parameters
parent –
PySide6.QtCore.QObject
Constructs QScatterDataProxy
with the given parent
.
- PySide6.QtDataVisualization.QScatterDataProxy.addItem(item)¶
- Parameters
- 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()¶
- PySide6.QtDataVisualization.QScatterDataProxy.insertItem(index, item)¶
- Parameters
index – int
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
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
This property holds The number of items in the array..
- PySide6.QtDataVisualization.QScatterDataProxy.itemCountChanged(count)¶
- Parameters
count – int
- PySide6.QtDataVisualization.QScatterDataProxy.itemsAdded(startIndex, count)¶
- Parameters
startIndex – int
count – int
- PySide6.QtDataVisualization.QScatterDataProxy.itemsChanged(startIndex, count)¶
- Parameters
startIndex – int
count – int
- PySide6.QtDataVisualization.QScatterDataProxy.itemsInserted(startIndex, count)¶
- Parameters
startIndex – int
count – int
- PySide6.QtDataVisualization.QScatterDataProxy.itemsRemoved(startIndex, count)¶
- Parameters
startIndex – int
count – int
- 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(newArray)¶
- Parameters
newArray –
QList
Takes ownership of the array newArray
. Clears the existing array if the new array differs from it. If the arrays are the same, this function just triggers the arrayReset()
signal.
Passing a null array deletes the old array and creates a new empty array.
- PySide6.QtDataVisualization.QScatterDataProxy.series()¶
- Return type
This property holds The series this proxy is attached to..
- PySide6.QtDataVisualization.QScatterDataProxy.seriesChanged(series)¶
- Parameters
- PySide6.QtDataVisualization.QScatterDataProxy.setItem(index, item)¶
- Parameters
index – int
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
.
© 2022 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.