PythonQt.QtGui.QListView · declarations 002
Back to PythonQt.QtGui.QListView
moveCursor
moveCursor(cursorAction: Any, modifiers: Any) -> Any
X.moveCursor(cursorAction, modifiers) -> PythonQt.QtCore.QModelIndex
Supplemental documentation: Qt 5 reference:
[override virtual protected] QModelIndex QListView::moveCursor(QAbstractItemView::CursorAction cursorAction, Qt::KeyboardModifiers modifiers)
Reimplements: QAbstractItemView::moveCursor(QAbstractItemView::CursorAction cursorAction, Qt::KeyboardModifiers modifiers).
Upstream PySide2 reference signatures (binding differences may apply):
moveCursor(self, cursorAction: PySide2.QtWidgets.QAbstractItemView.CursorAction, modifiers: PySide2.QtCore.Qt.KeyboardModifiers) -> PySide2.QtCore.QModelIndex
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#moveCursor
movement
instance-attribute
movement: Any
Qt 5 reference:
movement : Movement
This property holds whether the items can be moved freely, are snapped to a grid, or cannot be moved at all.
This property determines how the user can move the items in the view. Static means that the items can't be moved the user. Free means that the user can drag and drop the items to any position in the view. Snap means that the user can drag and drop the items, but only to the positions in a notional grid signified by the gridSize property.
Setting this property when the view is visible will cause the items to be laid out again.
By default, this property is set to Static.
Access functions:
| QListView::Movement | movement() const |
|---|---|
| void | setMovement(QListView::Movement movement) |
See also gridSize, resizeMode, and viewMode.
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#movement
objectNameChanged
objectNameChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QListView.objectNameChanged; argument details are not documented.
paintEvent
paintEvent(e: Any) -> None
X.paintEvent(e)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QListView::paintEvent(QPaintEvent *e)
Reimplements: QAbstractScrollArea::paintEvent(QPaintEvent *event).
Upstream PySide2 reference signatures (binding differences may apply):
paintEvent(self, e: PySide2.QtGui.QPaintEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#paintEvent
pressed
pressed(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QListView.pressed; argument details are not documented.
rectForIndex
rectForIndex(index: Any) -> Any
X.rectForIndex(index) -> PythonQt.QtCore.QRect
Supplemental documentation: Qt 5 reference:
[protected] QRect QListView::rectForIndex(const QModelIndex \&index) const
Returns the rectangle of the item at position index in the model. The rectangle is in contents coordinates.
See also visualRect().
Upstream PySide2 reference signatures (binding differences may apply):
rectForIndex(self, index: PySide2.QtCore.QModelIndex) -> PySide2.QtCore.QRect
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#rectForIndex
reset
reset() -> None
X.reset()
Upstream PySide2 reference signatures (binding differences may apply):
reset(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#reset
resizeContents
resizeContents(width: int, height: int) -> None
X.resizeContents(width, height)
Upstream PySide2 reference signatures (binding differences may apply):
resizeContents(self, width: int, height: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#resizeContents
resizeEvent
resizeEvent(e: Any) -> None
X.resizeEvent(e)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QListView::resizeEvent(QResizeEvent *e)
Reimplements: QAbstractItemView::resizeEvent(QResizeEvent *event).
Upstream PySide2 reference signatures (binding differences may apply):
resizeEvent(self, e: PySide2.QtGui.QResizeEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#resizeEvent
resizeMode
instance-attribute
resizeMode: Any
Qt 5 reference:
resizeMode : ResizeMode
This property holds whether the items are laid out again when the view is resized.
If this property is Adjust, the items will be laid out again when the view is resized. If the value is Fixed, the items will not be laid out when the view is resized.
By default, this property is set to Fixed.
Access functions:
| QListView::ResizeMode | resizeMode() const |
|---|---|
| void | setResizeMode(QListView::ResizeMode mode) |
See also movement, gridSize, and viewMode.
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#resizeMode
scrollContentsBy
scrollContentsBy(dx: int, dy: int) -> None
X.scrollContentsBy(dx, dy)
Upstream PySide2 reference signatures (binding differences may apply):
scrollContentsBy(self, dx: int, dy: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#scrollContentsBy
scrollTo
scrollTo(index: Any, hint: Any) -> None
X.scrollTo(index, hint)
Supplemental documentation: Qt 5 reference:
[override virtual] void QListView::scrollTo(const QModelIndex \&index, QAbstractItemView::ScrollHint hint \= EnsureVisible)
Reimplements: QAbstractItemView::scrollTo(const QModelIndex \&index, QAbstractItemView::ScrollHint hint).
Upstream PySide2 reference signatures (binding differences may apply):
scrollTo(self, index: PySide2.QtCore.QModelIndex, hint: PySide2.QtWidgets.QAbstractItemView.ScrollHint=...) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#scrollTo
selectedIndexes
selectedIndexes() -> tuple
X.selectedIndexes() -> tuple
Supplemental documentation: Qt 5 reference:
[override virtual protected] QModelIndexList QListView::selectedIndexes() const
Reimplements: QAbstractItemView::selectedIndexes() const.
Upstream PySide2 reference signatures (binding differences may apply):
selectedIndexes(self) -> typing.List[int]
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#selectedIndexes
selectionRectVisible
instance-attribute
selectionRectVisible: Any
Qt 5 reference:
selectionRectVisible : bool
if the selection rectangle should be visible
If this property is true then the selection rectangle is visible; otherwise it will be
hidden.
Note: The selection rectangle will only be visible if the selection mode is in a mode where more than one item can be selected; i.e., it will not draw a selection rectangle if the selection mode is QAbstractItemView::SingleSelection.
By default, this property is false.
This property was introduced in Qt 4.3.
Access functions:
| bool | isSelectionRectVisible() const |
|---|---|
| void | setSelectionRectVisible(bool show) |
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#selectionRectVisible
setBatchSize
setBatchSize(batchSize: int) -> None
X.setBatchSize(batchSize)
Upstream PySide2 reference signatures (binding differences may apply):
setBatchSize(self, batchSize: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#setBatchSize
setFlow
setFlow(arg0: flow) -> None
X.setFlow(flow)
Upstream PySide2 reference signatures (binding differences may apply):
setFlow(self, flow: PySide2.QtWidgets.QListView.Flow) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#setFlow
setGridSize
setGridSize(size: Any) -> None
X.setGridSize(size)
Upstream PySide2 reference signatures (binding differences may apply):
setGridSize(self, size: PySide2.QtCore.QSize) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#setGridSize
setLayoutMode
setLayoutMode(mode: Any) -> None
X.setLayoutMode(mode)
Upstream PySide2 reference signatures (binding differences may apply):
setLayoutMode(self, mode: PySide2.QtWidgets.QListView.LayoutMode) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#setLayoutMode
setModelColumn
setModelColumn(column: int) -> None
X.setModelColumn(column)
Upstream PySide2 reference signatures (binding differences may apply):
setModelColumn(self, column: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#setModelColumn
setMovement
setMovement(movement: Any) -> None
X.setMovement(movement)
Upstream PySide2 reference signatures (binding differences may apply):
setMovement(self, movement: PySide2.QtWidgets.QListView.Movement) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#setMovement
setPositionForIndex
setPositionForIndex(position: Any, index: Any) -> None
X.setPositionForIndex(position, index)
Supplemental documentation: Qt 5 reference:
[protected] void QListView::setPositionForIndex(const QPoint \&position, const QModelIndex \&index)
Sets the contents position of the item at index in the model to the given position. If the list view's movement mode is Static or its view mode is ListView, this function will have no effect.
This function was introduced in Qt 4.1.
Upstream PySide2 reference signatures (binding differences may apply):
setPositionForIndex(self, position: PySide2.QtCore.QPoint, index: PySide2.QtCore.QModelIndex) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#setPositionForIndex
setResizeMode
setResizeMode(mode: Any) -> None
X.setResizeMode(mode)
Upstream PySide2 reference signatures (binding differences may apply):
setResizeMode(self, mode: PySide2.QtWidgets.QListView.ResizeMode) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#setResizeMode
setRootIndex
setRootIndex(index: Any) -> None
X.setRootIndex(index)
Upstream PySide2 reference signatures (binding differences may apply):
setRootIndex(self, index: PySide2.QtCore.QModelIndex) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#setRootIndex
setRowHidden
setRowHidden(row: int, hide: bool) -> None
X.setRowHidden(row, hide)
Supplemental documentation: Qt 5 reference:
void QListView::setRowHidden(int row, bool hide)
If hide is true, the given row will be hidden; otherwise the row will be shown.
See also isRowHidden().
Upstream PySide2 reference signatures (binding differences may apply):
setRowHidden(self, row: int, hide: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#setRowHidden
setSelection
setSelection(rect: Any, command: Any) -> None
X.setSelection(rect, command)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QListView::setSelection(const QRect \&rect, QItemSelectionModel::SelectionFlags command)
Reimplements: QAbstractItemView::setSelection(const QRect \&rect, QItemSelectionModel::SelectionFlags flags).
Upstream PySide2 reference signatures (binding differences may apply):
setSelection(self, rect: PySide2.QtCore.QRect, command: PySide2.QtCore.QItemSelectionModel.SelectionFlags) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#setSelection
setSelectionRectVisible
setSelectionRectVisible(show: bool) -> None
X.setSelectionRectVisible(show)
Upstream PySide2 reference signatures (binding differences may apply):
setSelectionRectVisible(self, show: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#setSelectionRectVisible
setSpacing
setSpacing(space: int) -> None
X.setSpacing(space)
Upstream PySide2 reference signatures (binding differences may apply):
setSpacing(self, space: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#setSpacing
setUniformItemSizes
setUniformItemSizes(enable: bool) -> None
X.setUniformItemSizes(enable)
Upstream PySide2 reference signatures (binding differences may apply):
setUniformItemSizes(self, enable: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#setUniformItemSizes
setViewMode
setViewMode(mode: Any) -> None
X.setViewMode(mode)
Upstream PySide2 reference signatures (binding differences may apply):
setViewMode(self, mode: PySide2.QtWidgets.QListView.ViewMode) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#setViewMode
setWordWrap
setWordWrap(on: bool) -> None
X.setWordWrap(on)
Upstream PySide2 reference signatures (binding differences may apply):
setWordWrap(self, on: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#setWordWrap
setWrapping
setWrapping(enable: bool) -> None
X.setWrapping(enable)
Upstream PySide2 reference signatures (binding differences may apply):
setWrapping(self, enable: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#setWrapping
spacing
instance-attribute
spacing: int
Qt 5 reference:
spacing : int
This property holds the space around the items in the layout
This property is the size of the empty space that is padded around an item in the layout.
Setting this property when the view is visible will cause the items to be laid out again.
By default, this property contains a value of 0.
Access functions:
| int | spacing() const |
|---|---|
| void | setSpacing(int space) |
See also viewMode.
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#spacing
startDrag
startDrag(supportedActions: Any) -> None
X.startDrag(supportedActions)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QListView::startDrag(Qt::DropActions supportedActions)
Reimplements: QAbstractItemView::startDrag(Qt::DropActions supportedActions).
Upstream PySide2 reference signatures (binding differences may apply):
startDrag(self, supportedActions: PySide2.QtCore.Qt.DropActions) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#startDrag
timerEvent
timerEvent(e: Any) -> None
X.timerEvent(e)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QListView::timerEvent(QTimerEvent *e)
Reimplements: QAbstractItemView::timerEvent(QTimerEvent *event).
Upstream PySide2 reference signatures (binding differences may apply):
timerEvent(self, e: PySide2.QtCore.QTimerEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#timerEvent
uniformItemSizes
instance-attribute
uniformItemSizes: bool
Qt 5 reference:
uniformItemSizes : bool
This property holds whether all items in the listview have the same size
This property should only be set to true if it is guaranteed that all items in the view have the same size. This enables the view to do some optimizations for performance purposes.
By default, this property is false.
This property was introduced in Qt 4.1.
Access functions:
| bool | uniformItemSizes() const |
|---|---|
| void | setUniformItemSizes(bool enable) |
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#uniformItemSizes
verticalOffset
verticalOffset() -> int
X.verticalOffset() -> int
Supplemental documentation: Qt 5 reference:
[override virtual protected] int QListView::verticalOffset() const
Reimplements: QAbstractItemView::verticalOffset() const.
Upstream PySide2 reference signatures (binding differences may apply):
verticalOffset(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#verticalOffset
viewMode
instance-attribute
viewMode: Any
Qt 5 reference:
viewMode : ViewMode
This property holds the view mode of the QListView.
This property will change the other unset properties to conform with the set view mode. QListView-specific properties that have already been set will not be changed, unless clearPropertyFlags() has been called.
Setting the view mode will enable or disable drag and drop based on the selected movement. For ListMode, the default movement is Static (drag and drop disabled); for IconMode, the default movement is Free (drag and drop enabled).
Access functions:
| QListView::ViewMode | viewMode() const |
|---|---|
| void | setViewMode(QListView::ViewMode mode) |
See also isWrapping, spacing, gridSize, flow, movement, and resizeMode.
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#viewMode
viewOptions
viewOptions() -> Any
X.viewOptions() -> PythonQt.QtGui.QStyleOptionViewItem
Supplemental documentation: Qt 5 reference:
[override virtual protected] QStyleOptionViewItem QListView::viewOptions() const
Reimplements: QAbstractItemView::viewOptions() const.
Upstream PySide2 reference signatures (binding differences may apply):
viewOptions(self) -> PySide2.QtWidgets.QStyleOptionViewItem
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#viewOptions
viewportEntered
viewportEntered(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QListView.viewportEntered; argument details are not documented.
viewportSizeHint
viewportSizeHint() -> Any
X.viewportSizeHint() -> PythonQt.QtCore.QSize
Supplemental documentation: Qt 5 reference:
[override virtual protected] QSize QListView::viewportSizeHint() const
Reimplements: QAbstractItemView::viewportSizeHint() const.
This function was introduced in Qt 5.2.
Upstream PySide2 reference signatures (binding differences may apply):
viewportSizeHint(self) -> PySide2.QtCore.QSize
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#viewportSizeHint