QListView¶

PyQt5.QtWidgets.QListView

Inherits from QAbstractItemView.

Inherited by QHelpIndexWidget, QListWidget, QUndoView.

Description¶

TODO

Enums¶

Flow

TODO

Member

Value

Description

LeftToRight

TODO

TODO

TopToBottom

TODO

TODO


LayoutMode

TODO

Member

Value

Description

Batched

TODO

TODO

SinglePass

TODO

TODO


Movement

TODO

Member

Value

Description

Free

TODO

TODO

Snap

TODO

TODO

Static

TODO

TODO


ResizeMode

TODO

Member

Value

Description

Adjust

TODO

TODO

Fixed

TODO

TODO


ViewMode

TODO

Member

Value

Description

IconMode

TODO

TODO

ListMode

TODO

TODO

Methods¶

__init__(parent: QWidget = None)

TODO


batchSize() → int

TODO


clearPropertyFlags()

TODO


currentChanged(QModelIndex, QModelIndex)

TODO


dataChanged(QModelIndex, QModelIndex, roles: Iterable[int] = [])

TODO


dragLeaveEvent(QDragLeaveEvent)

TODO


dragMoveEvent(QDragMoveEvent)

TODO


dropEvent(QDropEvent)

TODO


event(QEvent) → bool

TODO


flow() → Flow

TODO


gridSize() → QSize

TODO


horizontalOffset() → int

TODO


indexAt(QPoint) → QModelIndex

TODO


isIndexHidden(QModelIndex) → bool

TODO


isRowHidden(int) → bool

TODO


isSelectionRectVisible() → bool

TODO


isWrapping() → bool

TODO


itemAlignment() → Alignment

TODO


layoutMode() → LayoutMode

TODO


modelColumn() → int

TODO


mouseMoveEvent(QMouseEvent)

TODO


mouseReleaseEvent(QMouseEvent)

TODO


moveCursor(CursorAction, Union[KeyboardModifiers, KeyboardModifier]) → QModelIndex

TODO


movement() → Movement

TODO


paintEvent(QPaintEvent)

TODO


rectForIndex(QModelIndex) → QRect

TODO


reset()

TODO


resizeEvent(QResizeEvent)

TODO


resizeMode() → ResizeMode

TODO


rowsAboutToBeRemoved(QModelIndex, int, int)

TODO


rowsInserted(QModelIndex, int, int)

TODO


scrollContentsBy(int, int)

TODO


scrollTo(QModelIndex, hint: ScrollHint = EnsureVisible)

TODO


selectedIndexes() → List[QModelIndex]

TODO


selectionChanged(QItemSelection, QItemSelection)

TODO


setBatchSize(int)

TODO


setFlow(Flow)

TODO


setGridSize(QSize)

TODO


setItemAlignment(Union[Alignment, AlignmentFlag])

TODO


setLayoutMode(LayoutMode)

TODO


setModelColumn(int)

TODO


setMovement(Movement)

TODO


setPositionForIndex(QPoint, QModelIndex)

TODO


setResizeMode(ResizeMode)

TODO


setRootIndex(QModelIndex)

TODO


setRowHidden(int, bool)

TODO


setSelection(QRect, Union[SelectionFlags, SelectionFlag])

TODO


setSelectionRectVisible(bool)

TODO


setSpacing(int)

TODO


setUniformItemSizes(bool)

TODO


setViewMode(ViewMode)

TODO


setWordWrap(bool)

TODO


setWrapping(bool)

TODO


spacing() → int

TODO


startDrag(Union[DropActions, DropAction])

TODO


timerEvent(QTimerEvent)

TODO


uniformItemSizes() → bool

TODO


updateGeometries()

TODO


verticalOffset() → int

TODO


viewMode() → ViewMode

TODO


viewOptions() → QStyleOptionViewItem

TODO


viewportSizeHint() → QSize

TODO


visualRect(QModelIndex) → QRect

TODO


visualRegionForSelection(QItemSelection) → QRegion

TODO


wheelEvent(QWheelEvent)

TODO


wordWrap() → bool

TODO

Signals¶

indexesMoved(Iterable[QModelIndex])

TODO