QAbstractItemModelReplica¶
The QAbstractItemModelReplica
class serves as a convenience class for Replicas of Sources based on QAbstractItemModel
. More…
Synopsis¶
Functions¶
def
availableRoles
()def
hasData
(index, role)def
isInitialized
()def
rootCacheSize
()def
selectionModel
()def
setRootCacheSize
(rootCacheSize)
Signals¶
def
initialized
()
Detailed Description¶
QAbstractItemModelReplica
makes replicating QAbstractItemModels more efficient by employing caching and pre-fetching.
See also
QAbstractItemModel
- class PySide6.QtRemoteObjects.QAbstractItemModelReplica¶
- PySide6.QtRemoteObjects.QAbstractItemModelReplica.availableRoles()¶
- Return type
Returns a list of available roles.
See also
QAbstractItemModel
- PySide6.QtRemoteObjects.QAbstractItemModelReplica.hasData(index, role)¶
- Parameters
index –
PySide6.QtCore.QModelIndex
role – int
- Return type
bool
Returns true
if there exists role
data for the item at index
. Returns false
in any other case.
- PySide6.QtRemoteObjects.QAbstractItemModelReplica.initialized()¶
- PySide6.QtRemoteObjects.QAbstractItemModelReplica.isInitialized()¶
- Return type
bool
Returns true
if this replica has been initialized with data from the Source object. Returns false
otherwise.
See also
- PySide6.QtRemoteObjects.QAbstractItemModelReplica.rootCacheSize()¶
- Return type
int
Returns the current size of the internal cache. By default this is set to the value of the QTRO_NODES_CACHE_SIZE
environment variable, or a default of 1000
if it is invalid or doesn’t exist.
See also
- PySide6.QtRemoteObjects.QAbstractItemModelReplica.selectionModel()¶
- Return type
Returns a pointer to the QItemSelectionModel
for the current QAbstractItemModelReplica
.
- PySide6.QtRemoteObjects.QAbstractItemModelReplica.setRootCacheSize(rootCacheSize)¶
- Parameters
rootCacheSize – int
Sets the size of the internal cache to rootCacheSize
.
See also
© 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.