meshroom.common.qt.QObjectListModel

Inheritance diagram of meshroom.common.qt.QObjectListModel
class meshroom.common.qt.QObjectListModel(keyAttrName='', parent=None)

QObjectListModel provides a more powerful, but still easy to use, alternative to using QObjectList lists as models for QML views. As a QAbstractListModel, it has the ability to automatically notify the view of specific changes to the list, such as adding or removing items. At the same time it provides QList-like convenience functions such as append, at, and removeAt for easily working with the model from Python.

__init__(keyAttrName='', parent=None)

Constructs an object list model with the given parent.

Methods

__init__([keyAttrName, parent])

Constructs an object list model with the given parent.

add(obj)

append(obj)

Insert object at the end of the model.

at(i)

Return the object at index i.

beginInsertColumns(self, parent, first, last)

beginInsertRows(self, parent, first, last)

beginMoveColumns(self, sourceParent, ...)

beginMoveRows(self, sourceParent, ...)

beginRemoveColumns(self, parent, first, last)

beginRemoveRows(self, parent, first, last)

beginResetModel(self)

blockSignals(self, b)

buddy(self, index)

canDropMimeData(self, data, action, row, ...)

canFetchMore(self, parent)

changePersistentIndex(self, from_, to)

changePersistentIndexList(self, from_, to)

checkIndex(self, index[, options])

childEvent(self, event)

children(self)

clear()

Removes all items from the model and notifies any views.

columnCount(self, parent)

connect(...)

connectNotify(self, signal)

contains(obj)

Returns true if the list contains an occurrence of object; otherwise returns false.

createIndex(-> PySide2.QtCore.QModelIndex)

customEvent(self, event)

data(index, role)

Returns data for the specified role, from the item with the given index.

decodeData(self, row, column, parent, stream)

deleteLater(self)

disconnect(...)

disconnectNotify(self, signal)

dropMimeData(self, data, action, row, ...)

dumpObjectInfo(self)

dumpObjectTree(self)

dynamicPropertyNames(self)

emit(self, arg__1, *args)

encodeData(self, indexes, stream)

endInsertColumns(self)

endInsertRows(self)

endMoveColumns(self)

endMoveRows(self)

endRemoveColumns(self)

endRemoveRows(self)

endResetModel(self)

event(self, event)

eventFilter(self, watched, event)

extend(iterable)

Insert objects at the end of the model.

fetchMore(self, parent)

findChild(self, arg__1[, arg__2])

findChildren(-> typing.Iterable)

flags(self, index)

get(key)

Raises a KeyError if key is not in the map.

hasChildren(self, parent)

hasIndex(self, row, column[, parent])

headerData(self, section, orientation[, role])

index(self, row[, column, parent])

indexOf(matchObj[, fromIndex, positive])

Returns the index position of the first occurrence of object in the model, searching forward from index position from.

inherits(self, classname)

insert(i, toInsert)

Inserts object(s) at index position i in the model and notifies any views.

insertColumn(self, column[, parent])

insertColumns(self, column, count[, parent])

insertRow(self, row[, parent])

insertRows(self, row, count[, parent])

installEventFilter(self, filterObj)

isEmpty()

Returns true if the model contains no items; otherwise returns false.

isSignalConnected(self, signal)

isWidgetType(self)

isWindowType(self)

itemData(self, index)

items()

keys()

killTimer(self, id)

lastIndexOf(matchObj[, fromIndex, positive])

Returns the index position of the last occurrence of object in the list, searching backward from index position from.

match(self, start, role, value[, hits, flags])

metaObject(self)

mimeData(self, indexes)

mimeTypes(self)

move(fromIndex, toIndex)

Moves the item at index position from to index position to and notifies any views.

moveColumn(self, sourceParent, sourceColumn, ...)

moveColumns(self, sourceParent, ...)

moveRow(self, sourceParent, sourceRow, ...)

moveRows(self, sourceParent, sourceRow, ...)

moveToThread(self, thread)

objectList()

Returns the object list used by the model to store data.

objectName(self)

onRequestDeletion(item)

parent(-> PySide2.QtCore.QObject)

persistentIndexList(self)

pop(key)

property(self, name)

receivers(self, signal)

registerUserData()

remove(obj)

Removes the first occurrence of the given object.

removeAt(i[, count])

Removes count number of items from index position i and notifies any views.

removeColumn(self, column[, parent])

removeColumns(self, column, count[, parent])

removeEventFilter(self, obj)

removeRow(self, row[, parent])

removeRows(self, row, count[, parent])

replace(i, obj)

Replaces the item at index position i with object and notifies any views.

reset(objects)

resetInternalData(self)

revert(self)

roleNames(self)

rowCount(parent)

Returns the number of rows in the model.

sender(self)

senderSignalIndex(self)

setData(self, index, value[, role])

setHeaderData(self, section, orientation, value)

setItemData(self, index, roles)

setObjectList(objects)

Sets the model's internal objects list to objects.

setObjectName(self, name)

setParent(self, parent)

setProperty(self, name, value)

sibling(self, row, column, idx)

signalsBlocked(self)

size()

Returns the number of items in the model.

sort(self, column[, order])

span(self, index)

startTimer(self, interval[, timerType])

submit(self)

supportedDragActions(self)

supportedDropActions(self)

takeAt(i)

Removes the item at index position i (notifying any views) and returns it.

thread(self)

timerEvent(self, event)

tr(self, arg__1[, arg__2, arg__3])

update(objects)

values()

Attributes

HorizontalSortHint

NoLayoutChangeHint

ObjectRole

VerticalSortHint

columnsAboutToBeInserted

columnsAboutToBeMoved

columnsAboutToBeRemoved

columnsInserted

columnsMoved

columnsRemoved

count

countChanged

dataChanged

destroyed

headerDataChanged

layoutAboutToBeChanged

layoutChanged

modelAboutToBeReset

modelReset

objectNameChanged

objects

requestDeletion

rowsAboutToBeInserted

rowsAboutToBeMoved

rowsAboutToBeRemoved

rowsInserted

rowsMoved

rowsRemoved

staticMetaObject