Skip to content

PythonQt.QtGui.QListView · declarations 003

Back to PythonQt.QtGui.QListView

visualRect

visualRect(index: Any) -> Any

X.visualRect(index) -> PythonQt.QtCore.QRect

Supplemental documentation: Qt 5 reference:

[override virtual] QRect QListView::visualRect(const QModelIndex \&index) const

Reimplements: QAbstractItemView::visualRect(const QModelIndex \&index) const.

Upstream PySide2 reference signatures (binding differences may apply):

visualRect(self, index: PySide2.QtCore.QModelIndex) -> PySide2.QtCore.QRect

Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#visualRect

visualRegionForSelection

visualRegionForSelection(selection: Any) -> Any

X.visualRegionForSelection(selection) -> PythonQt.QtGui.QRegion

Supplemental documentation: Qt 5 reference:

[override virtual protected] QRegion QListView::visualRegionForSelection(const QItemSelection \&selection) const

Reimplements: QAbstractItemView::visualRegionForSelection(const QItemSelection \&selection) const.

Since 4.7, the returned region only contains rectangles intersecting (or included in) the viewport.

Upstream PySide2 reference signatures (binding differences may apply):

visualRegionForSelection(self, selection: PySide2.QtCore.QItemSelection) -> PySide2.QtGui.QRegion

Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#visualRegionForSelection

wheelEvent

wheelEvent(e: Any) -> None

X.wheelEvent(e)

Supplemental documentation: Qt 5 reference:

[override virtual protected] void QListView::wheelEvent(QWheelEvent *e)

Reimplements: QAbstractScrollArea::wheelEvent(QWheelEvent *e).

Upstream PySide2 reference signatures (binding differences may apply):

wheelEvent(self, e: PySide2.QtGui.QWheelEvent) -> None

Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#wheelEvent

windowIconChanged

windowIconChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QListView.windowIconChanged; argument details are not documented.

windowIconTextChanged

windowIconTextChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QListView.windowIconTextChanged; argument details are not documented.

windowTitleChanged

windowTitleChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QListView.windowTitleChanged; argument details are not documented.

wordWrap instance-attribute

wordWrap: bool

Qt 5 reference:

wordWrap : bool

This property holds the item text word-wrapping policy

If this property is true then the item text is wrapped where necessary at word-breaks; otherwise it is not wrapped at all. This property is false by default.

Please note that even if wrapping is enabled, the cell will not be expanded to make room for the text. It will print ellipsis for text that cannot be shown, according to the view's textElideMode.

This property was introduced in Qt 4.2.

Access functions:

bool wordWrap() const
void setWordWrap(bool on)

Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#wordWrap