PySide6.QtCore.QTransposeProxyModel

class QTransposeProxyModel

This proxy transposes the source model. More

Inheritance diagram of PySide6.QtCore.QTransposeProxyModel

Synopsis

Methods

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

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.

__init__([parent=None])
Parameters:

parentQObject

Constructs a new proxy model with the given parent.