QTransposeProxyModel — PyQt Documentation v6.9.0 (original) (raw)
PyQt6.QtCore.QTransposeProxyModel
Inherits from QAbstractProxyModel.
Description¶
This proxy transposes the source model.
This model will make the rows of the source model become columns of the proxy model and vice-versa.
If the model is a tree, the parents will be transposed as well. For example, if an index in the source model had parent index(2,0), it will have parent index(0,2) in the proxy.
Methods¶
__init__(parent: QObject = None)
Constructs a new proxy model with the given parent.
columnCount(parent: QModelIndex = QModelIndex()) → int
TODO
TODO
index(int, int, parent: QModelIndex = QModelIndex()) → QModelIndex
TODO
insertColumns(int, int, parent: QModelIndex = QModelIndex()) → bool
TODO
insertRows(int, int, parent: QModelIndex = QModelIndex()) → bool
TODO
itemData(QModelIndex) → dict[int, Any]
TODO
mapFromSource(QModelIndex) → QModelIndex
TODO
mapToSource(QModelIndex) → QModelIndex
TODO
moveColumns(QModelIndex, int, int, QModelIndex, int) → bool
TODO
moveRows(QModelIndex, int, int, QModelIndex, int) → bool
TODO
parent(QModelIndex) → QModelIndex
TODO
removeColumns(int, int, parent: QModelIndex = QModelIndex()) → bool
TODO
removeRows(int, int, parent: QModelIndex = QModelIndex()) → bool
TODO
rowCount(parent: QModelIndex = QModelIndex()) → int
TODO
TODO
setItemData(QModelIndex, dict[int, Any]) → bool
TODO
setSourceModel(QAbstractItemModel)
TODO
sort(int, order: SortOrder = AscendingOrder)
TODO
span(QModelIndex) → QSize
TODO