Skip to content

PythonQt.QtGui.QAbstractItemView

QAbstractItemView

PythonQtInstanceWrapper object

Native bases: PythonQtInstanceWrapper

Supplemental documentation: Qt 5 reference:

Detailed Description

QAbstractItemView class is the base class for every standard view that uses a QAbstractItemModel. QAbstractItemView is an abstract class and cannot itself be instantiated. It provides a standard interface for interoperating with models through the signals and slots mechanism, enabling subclasses to be kept up-to-date with changes to their models. This class provides standard support for keyboard and mouse navigation, viewport scrolling, item editing, and selections. The keyboard navigation implements this functionality:

Keys Functionality
Arrow keys Changes the current item and selects it.
Ctrl+Arrow keys Changes the current item but does not select it.
Shift+Arrow keys Changes the current item and selects it. The previously selected item(s) is not deselected.
Ctr+Space Toggles selection of the current item.
Tab/Backtab Changes the current item to the next/previous item.
Home/End Selects the first/last item in the model.
Page up/Page down Scrolls the rows shown up/down by the number of visible rows in the view.
Ctrl+A Selects all items in the model.

Note that the above table assumes that the selection mode allows the operations. For instance, you cannot select items if the selection mode is QAbstractItemView::NoSelection.

The QAbstractItemView class is one of the Model/View Classes and is part of Qt's model/view framework.

The view classes that inherit QAbstractItemView only need to implement their own view-specific functionality, such as drawing items, returning the geometry of items, finding items, etc.

QAbstractItemView provides common slots such as edit() and setCurrentIndex(). Many protected slots are also provided, including dataChanged(), rowsInserted(), rowsAboutToBeRemoved(), selectionChanged(), and currentChanged().

The root item is returned by rootIndex(), and the current item by currentIndex(). To make sure that an item is visible use scrollTo().

Some of QAbstractItemView's functions are concerned with scrolling, for example setHorizontalScrollMode() and setVerticalScrollMode(). To set the range of the scroll bars, you can, for example, reimplement the view's resizeEvent() function:

void MyView::resizeEvent(QResizeEvent *event) {
    horizontalScrollBar()->setRange(0, realWidth - width());
    ...
}

Note that the range is not updated until the widget is shown.

Several other functions are concerned with selection control; for example setSelectionMode(), and setSelectionBehavior(). This class provides a default selection model to work with (selectionModel()), but this can be replaced by using setSelectionModel() with an instance of QItemSelectionModel.

For complete control over the display and editing of items you can specify a delegate with setItemDelegate().

QAbstractItemView provides a lot of protected functions. Some are concerned with editing, for example, edit(), and commitData(), whilst others are keyboard and mouse event handlers.

Note: If you inherit QAbstractItemView and intend to update the contents of the viewport, you should use viewport->update() instead of update() as all painting operations take place on the viewport.

Source: https://doc.qt.io/archives/qt-5.15/qabstractitemview.html

Complete member index

Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.

Member Kind Signature Summary
AboveItem attribute Any
AdjustIgnored attribute Any
AdjustToContents attribute Any
AdjustToContentsOnFirstShow attribute Any
AllEditTriggers attribute Any
AnimatingState attribute Any
AnyKeyPressed attribute Any
BelowItem attribute Any
Box attribute Any
CollapsingState attribute Any
ContiguousSelection attribute Any
CurrentChanged attribute Any
CursorAction attribute type Convert a number or string to an integer, or return 0 if no arguments are given.
DoubleClicked attribute Any
DragDrop attribute Any
DragDropMode attribute type Convert a number or string to an integer, or return 0 if no arguments are given.
DragOnly attribute Any
DragSelectingState attribute Any
DraggingState attribute Any
DrawChildren attribute Any (shared captured text)
DrawWindowBackground attribute Any (shared captured text)
DropIndicatorPosition attribute type Convert a number or string to an integer, or return 0 if no arguments are given.
DropOnly attribute Any
EditKeyPressed attribute Any
EditTrigger attribute type Convert a number or string to an integer, or return 0 if no arguments are given.
EditTriggers attribute type Convert a number or string to an integer, or return 0 if no arguments are given.
EditingState attribute Any
EnsureVisible attribute Any
ExpandingState attribute Any
ExtendedSelection attribute Any
HLine attribute Any
IgnoreMask attribute Any (shared captured text)
InternalMove attribute Any
MoveDown attribute Any
MoveEnd attribute Any
MoveHome attribute Any
MoveLeft attribute Any
MoveNext attribute Any
MovePageDown attribute Any
MovePageUp attribute Any
MovePrevious attribute Any
MoveRight attribute Any
MoveUp attribute Any
MultiSelection attribute Any
NoDragDrop attribute Any
NoEditTriggers attribute Any
NoFrame attribute Any
NoSelection attribute Any
NoState attribute Any
OnItem attribute Any
OnViewport attribute Any
PaintDeviceMetric attribute type Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text)
Panel attribute Any
PdmDepth attribute Any (shared captured text)
PdmDevicePixelRatio attribute Any (shared captured text)
PdmDevicePixelRatioScaled attribute Any (shared captured text)
PdmDpiX attribute Any (shared captured text)
PdmDpiY attribute Any (shared captured text)
PdmHeight attribute Any (shared captured text)
PdmHeightMM attribute Any (shared captured text)
PdmNumColors attribute Any (shared captured text)
PdmPhysicalDpiX attribute Any (shared captured text)
PdmPhysicalDpiY attribute Any (shared captured text)
PdmWidth attribute Any (shared captured text)
PdmWidthMM attribute Any (shared captured text)
Plain attribute Any
PositionAtBottom attribute Any
PositionAtCenter attribute Any
PositionAtTop attribute Any
Raised attribute Any
RenderFlag attribute type Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text)
RenderFlags attribute type Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text)
ScrollHint attribute type Convert a number or string to an integer, or return 0 if no arguments are given.
ScrollMode attribute type Convert a number or string to an integer, or return 0 if no arguments are given.
ScrollPerItem attribute Any
ScrollPerPixel attribute Any
SelectColumns attribute Any
SelectItems attribute Any
SelectRows attribute Any
SelectedClicked attribute Any
SelectionBehavior attribute type Convert a number or string to an integer, or return 0 if no arguments are given.
SelectionMode attribute type Convert a number or string to an integer, or return 0 if no arguments are given.
Shadow attribute type Convert a number or string to an integer, or return 0 if no arguments are given.
Shadow_Mask attribute Any
Shape attribute type Convert a number or string to an integer, or return 0 if no arguments are given.
Shape_Mask attribute Any
SingleSelection attribute Any
SizeAdjustPolicy attribute type Convert a number or string to an integer, or return 0 if no arguments are given.
State attribute type Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text)
StyleMask attribute type Convert a number or string to an integer, or return 0 if no arguments are given.
StyledPanel attribute Any
Sunken attribute Any
VLine attribute Any
WinPanel attribute Any
__init__ function (self, *args: Any, **kwargs: Any) -> None Native constructor; consult class documentation for supported overloads. (shared captured text)
acceptDrops attribute Any (shared captured text)
accessibleDescription attribute Any (shared captured text)
accessibleName attribute Any (shared captured text)
actionEvent function (self, event: Any) -> Any (shared captured text)
actions function (self) -> tuple X.actions() -> tuple (shared captured text)
activateWindow function (self) -> Any (shared captured text)
activated function (self, *args: Any, **kwargs: Any) -> Any Native PythonQt.QtGui.QAbstractItemView.activated; argument details are not documented.
addAction function (self, action: Any) -> Any (shared captured text)
addActions function (self, actions: Any) -> Any (shared captured text)
addScrollBarWidget function (self, widget: Any, alignment: Any) -> Any X.addScrollBarWidget(widget, alignment)
adjustSize function (self) -> Any (shared captured text)
alternatingRowColors attribute bool This property holds whether to draw the background using alternating colors
autoFillBackground attribute Any (shared captured text)
autoScroll attribute Any This property holds whether autoscrolling in drag move events is enabled
autoScrollMargin attribute int This property holds the size of the area when auto scrolling is triggered
backgroundRole function (self) -> Any (shared captured text)
backingStore function (self) -> Any X.backingStore() -> PythonQt.QtGui.QBackingStore (shared captured text)
baseSize attribute QSize (shared captured text)
blockSignals function (self, b: Any) -> bool X.blockSignals(b) -> bool (shared captured text)
changeEvent function (self, arg__1: Any) -> Any
childAt function (self, x: Any, y: Any) -> Any X.childAt(x, y) -> PythonQt.QtGui.QWidget (shared captured text)
childEvent function (self, event: Any) -> Any (shared captured text)
children function (self) -> tuple X.children() -> tuple (shared captured text)
childrenRect attribute QRect (shared captured text)
childrenRegion attribute QRegion (shared captured text)
className function (self, *args: Any, **kwargs: Any) -> Any Return the classname of the object (shared captured text)
clearFocus function (self) -> Any (shared captured text)
clearMask function (self) -> Any (shared captured text)
clearSelection function (self) -> None Deselects all selected items.
clicked function (self, *args: Any, **kwargs: Any) -> Any Native PythonQt.QtGui.QAbstractItemView.clicked; argument details are not documented.
close function (self) -> bool X.close() -> bool (shared captured text)
closeEvent function (self, event: Any) -> Any (shared captured text)
closePersistentEditor function (self, index: Any) -> None Closes the persistent editor for the item at the given index.
colorCount function (self) -> int X.colorCount() -> int (shared captured text)
connect function (self, signal: Any, receiver: Any, slot: Any, type: Any) -> bool X.connect(signal, receiver, slot, type) -> bool (shared captured text)
contentsMargins function (self) -> Any X.contentsMargins() -> PythonQt.QtGui.QMargins (shared captured text)
contentsRect function (self) -> Any X.contentsRect() -> PythonQt.QtCore.QRect (shared captured text)
contextMenuEvent function (self, arg__1: Any) -> Any
contextMenuPolicy attribute Any (shared captured text)
cornerWidget function (self) -> Any X.cornerWidget() -> PythonQt.QtGui.QWidget
createWinId function (self) -> Any (shared captured text)
createWindowContainer function (self, window: Any, parent: Any, arg2: flags) -> Any X.createWindowContainer(window, parent, flags) -> PythonQt.QtGui.QWidget (shared captured text)
currentIndex function (self) -> Any X.currentIndex() -> PythonQt.QtCore.QModelIndex
cursor attribute QCursor (shared captured text)
customContextMenuRequested function (self, *args: Any, **kwargs: Any) -> Any Native PythonQt.QtGui.QAbstractItemView.customContextMenuRequested; argument details are not documented.
customEvent function (self, event: Any) -> Any (shared captured text)
defaultDropAction attribute Any This property holds the drop action that will be used by default in.
delete function (self, *args: Any, **kwargs: Any) -> Any Deletes the C++ object (at your own risk, my friend!) (shared captured text)
deleteLater function (self) -> Any (shared captured text)
depth function (self) -> int X.depth() -> int (shared captured text)
destroy function (self, destroyWindow: Any, destroySubWindows: Any) -> Any X.destroy(destroyWindow, destroySubWindows) (shared captured text)
destroyed function (self, *args: Any, **kwargs: Any) -> Any Native PythonQt.QtGui.QAbstractItemView.destroyed; argument details are not documented.
devType function (self) -> int X.devType() -> int (shared captured text)
devicePixelRatio function (self) -> int X.devicePixelRatio() -> int (shared captured text)
devicePixelRatioF function (self) -> float X.devicePixelRatioF() -> float (shared captured text)
devicePixelRatioFScale function (self) -> float X.devicePixelRatioFScale() -> float (shared captured text)
dirtyRegionOffset function (self) -> Any X.dirtyRegionOffset() -> PythonQt.QtCore.QPoint
disconnect function (self, signal: Any, receiver: Any, slot: Any) -> bool X.disconnect(signal, receiver, slot) -> bool (shared captured text)
doAutoScroll function (self) -> None
doItemsLayout function (self) -> None
doubleClicked function (self, *args: Any, **kwargs: Any) -> Any Native PythonQt.QtGui.QAbstractItemView.doubleClicked; argument details are not documented.
dragDropMode attribute Any This property holds the drag and drop event the view will act upon
dragDropOverwriteMode attribute bool This property holds the view's drag and drop behavior
dragEnabled attribute bool This property holds whether the view supports dragging of its own items
dragEnterEvent function (self, event: Any) -> None Reimplements: [QAbstractScrollArea::dragEnterEvent](https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#dragEnterEvent)(QDragEnterEvent *event).
dragLeaveEvent function (self, event: Any) -> None Reimplements: [QAbstractScrollArea::dragLeaveEvent](https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#dragLeaveEvent)(QDragLeaveEvent *event).
dragMoveEvent function (self, event: Any) -> None Reimplements: [QAbstractScrollArea::dragMoveEvent](https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#dragMoveEvent)(QDragMoveEvent *event).
drawFrame function (self, arg__1: Any) -> Any
dropEvent function (self, event: Any) -> None Reimplements: [QAbstractScrollArea::dropEvent](https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#dropEvent)(QDropEvent *event).
dropIndicatorPosition function (self) -> int X.dropIndicatorPosition() -> int
dumpObjectInfo function (self) -> Any (shared captured text)
dumpObjectTree function (self) -> Any (shared captured text)
dynamicPropertyNames function (self) -> Any (shared captured text)
edit function (self, index: Any, trigger: Any, event: Any) -> bool X.edit(index, trigger, event) -> bool
editTriggers attribute Any This property holds which actions will initiate item editing
effectiveWinId function (self) -> int X.effectiveWinId() -> int (shared captured text)
enabled attribute Any (shared captured text)
ensurePolished function (self) -> Any (shared captured text)
enterEvent function (self, event: Any) -> Any (shared captured text)
entered function (self, *args: Any, **kwargs: Any) -> Any Native PythonQt.QtGui.QAbstractItemView.entered; argument details are not documented.
event function (self, event: Any) -> bool X.event(event) -> bool
eventFilter function (self, arg__1: Any, arg__2: Any) -> bool X.eventFilter(arg__1, arg__2) -> bool
executeDelayedItemsLayout function (self) -> None Executes the scheduled layouts without waiting for the event processing to begin.
findChild function (self, type: Any, name: Any) -> Any X.findChild(type, name) -> PythonQt.private.QObject (shared captured text)
findChildren function (self, type: Any, name: Any) -> tuple X.findChildren(type, name) -> tuple (shared captured text)
focus attribute Any (shared captured text)
focusInEvent function (self, event: Any) -> None Reimplements: [QWidget::focusInEvent](https://doc.qt.io/archives/qt-5.15/qwidget.html#focusInEvent)(QFocusEvent *event).
focusNextChild function (self) -> bool X.focusNextChild() -> bool (shared captured text)
focusNextPrevChild function (self, next: bool) -> bool X.focusNextPrevChild(next) -> bool
focusOutEvent function (self, event: Any) -> None Reimplements: [QWidget::focusOutEvent](https://doc.qt.io/archives/qt-5.15/qwidget.html#focusOutEvent)(QFocusEvent *event).
focusPolicy attribute Any (shared captured text)
focusPreviousChild function (self) -> bool X.focusPreviousChild() -> bool (shared captured text)
focusProxy function (self) -> Any X.focusProxy() -> PythonQt.QtGui.QWidget (shared captured text)
focusWidget function (self) -> Any X.focusWidget() -> PythonQt.QtGui.QWidget (shared captured text)
font attribute QFont (shared captured text)
fontInfo function (self) -> Any X.fontInfo() -> PythonQt.QtGui.QFontInfo (shared captured text)
fontMetrics function (self) -> Any X.fontMetrics() -> PythonQt.QtGui.QFontMetrics (shared captured text)
foregroundRole function (self) -> Any (shared captured text)
frameGeometry attribute QRect (shared captured text)
frameRect attribute QRect
frameShadow attribute Any
frameShape attribute Any
frameSize attribute QSize (shared captured text)
frameStyle function (self) -> int X.frameStyle() -> int
frameWidth attribute Any
fullScreen attribute Any (shared captured text)
geometry attribute QRect (shared captured text)
grab function (self, rectangle: Any) -> Any X.grab(rectangle) -> PythonQt.QtGui.QPixmap (shared captured text)
grabGesture function (self, type: Any, arg1: flags) -> Any X.grabGesture(type, flags) (shared captured text)
grabKeyboard function (self) -> Any (shared captured text)
grabMouse function (self, arg__1: Any) -> Any (shared captured text)
grabShortcut function (self, key: Any, context: Any) -> int X.grabShortcut(key, context) -> int (shared captured text)
graphicsEffect function (self) -> Any X.graphicsEffect() -> PythonQt.QtGui.QGraphicsEffect (shared captured text)
graphicsProxyWidget function (self) -> Any X.graphicsProxyWidget() -> PythonQt.QtGui.QGraphicsProxyWidget (shared captured text)
hasAutoScroll function (self) -> bool X.hasAutoScroll() -> bool
hasFocus function (self) -> bool X.hasFocus() -> bool (shared captured text)
hasHeightForWidth function (self) -> bool X.hasHeightForWidth() -> bool (shared captured text)
hasMouseTracking function (self) -> bool X.hasMouseTracking() -> bool (shared captured text)
height attribute Any (shared captured text)
heightForWidth function (self, arg__1: Any) -> int X.heightForWidth(arg__1) -> int (shared captured text)
heightMM function (self) -> int X.heightMM() -> int (shared captured text)
help function (self, *args: Any, **kwargs: Any) -> Any Shows the help of available methods for this class (shared captured text)
hide function (self) -> Any (shared captured text)
hideEvent function (self, event: Any) -> Any (shared captured text)
horizontalOffset function (self) -> int X.horizontalOffset() -> int
horizontalScrollBar function (self) -> Any X.horizontalScrollBar() -> PythonQt.QtGui.QScrollBar
horizontalScrollBarPolicy attribute Any
horizontalScrollMode attribute Any How the view scrolls its contents in the horizontal direction
iconSize attribute QSize This property holds the size of items' icons
iconSizeChanged function (self, *args: Any, **kwargs: Any) -> Any Native PythonQt.QtGui.QAbstractItemView.iconSizeChanged; argument details are not documented.
indexAt function (self, point: Any) -> Any X.indexAt(point) -> PythonQt.QtCore.QModelIndex
indexWidget function (self, index: Any) -> Any X.indexWidget(index) -> PythonQt.QtGui.QWidget
inherits function (self, *args: Any, **kwargs: Any) -> Any Returns if the class inherits or is of given type name (shared captured text)
initPainter function (self, painter: Any) -> Any (shared captured text)
initStyleOption function (self, option: Any) -> Any
inputMethodEvent function (self, event: Any) -> None Reimplements: [QWidget::inputMethodEvent](https://doc.qt.io/archives/qt-5.15/qwidget.html#inputMethodEvent)(QInputMethodEvent *event).
inputMethodHints attribute Any (shared captured text)
inputMethodQuery function (self, query: Any) -> Any X.inputMethodQuery(query) -> object
insertAction function (self, before: Any, action: Any) -> Any X.insertAction(before, action) (shared captured text)
insertActions function (self, before: Any, actions: Any) -> Any X.insertActions(before, actions) (shared captured text)
installEventFilter function (self, filterObj: Any) -> Any (shared captured text)
isActiveWindow attribute Any (shared captured text)
isAncestorOf function (self, child: Any) -> bool X.isAncestorOf(child) -> bool (shared captured text)
isEnabled function (self) -> bool X.isEnabled() -> bool (shared captured text)
isEnabledTo function (self, arg__1: Any) -> bool X.isEnabledTo(arg__1) -> bool (shared captured text)
isFullScreen function (self) -> bool X.isFullScreen() -> bool (shared captured text)
isHidden function (self) -> bool X.isHidden() -> bool (shared captured text)
isIndexHidden function (self, index: Any) -> bool X.isIndexHidden(index) -> bool
isLeftToRight function (self) -> bool X.isLeftToRight() -> bool (shared captured text)
isMaximized function (self) -> bool X.isMaximized() -> bool (shared captured text)
isMinimized function (self) -> bool X.isMinimized() -> bool (shared captured text)
isModal function (self) -> bool X.isModal() -> bool (shared captured text)
isRightToLeft function (self) -> bool X.isRightToLeft() -> bool (shared captured text)
isSignalConnected function (self, signal: Any) -> bool X.isSignalConnected(signal) -> bool (shared captured text)
isVisible function (self) -> bool X.isVisible() -> bool (shared captured text)
isVisibleTo function (self, arg__1: Any) -> bool X.isVisibleTo(arg__1) -> bool (shared captured text)
isWidgetType function (self) -> bool X.isWidgetType() -> bool (shared captured text)
isWindow function (self) -> bool X.isWindow() -> bool (shared captured text)
isWindowModified function (self) -> bool X.isWindowModified() -> bool (shared captured text)
isWindowType function (self) -> bool X.isWindowType() -> bool (shared captured text)
itemDelegate function (self, index: Any) -> Any X.itemDelegate(index) -> PythonQt.QtGui.QAbstractItemDelegate
itemDelegateForColumn function (self, column: int) -> Any X.itemDelegateForColumn(column) -> PythonQt.QtGui.QAbstractItemDelegate
itemDelegateForRow function (self, row: int) -> Any X.itemDelegateForRow(row) -> PythonQt.QtGui.QAbstractItemDelegate
keyPressEvent function (self, event: Any) -> None Reimplements: [QAbstractScrollArea::keyPressEvent](https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#keyPressEvent)(QKeyEvent *e).
keyReleaseEvent function (self, event: Any) -> Any (shared captured text)
keyboardGrabber function (self) -> Any X.keyboardGrabber() -> PythonQt.QtGui.QWidget (shared captured text)
keyboardSearch function (self, search: str) -> None Moves to and selects the item best matching the string search.
killTimer function (self, id: Any) -> Any (shared captured text)
layout function (self) -> Any X.layout() -> PythonQt.QtGui.QLayout (shared captured text)
layoutDirection attribute Any (shared captured text)
leaveEvent function (self, event: Any) -> Any (shared captured text)
lineWidth attribute Any
locale attribute QLocale (shared captured text)
logicalDpiX function (self) -> int X.logicalDpiX() -> int (shared captured text)
logicalDpiY function (self) -> int X.logicalDpiY() -> int (shared captured text)
lower function (self) -> Any (shared captured text)
mapFrom function (self, arg__1: Any, arg__2: Any) -> Any X.mapFrom(arg__1, arg__2) -> PythonQt.QtCore.QPoint (shared captured text)
mapFromGlobal function (self, arg__1: Any) -> Any X.mapFromGlobal(arg__1) -> PythonQt.QtCore.QPoint (shared captured text)
mapFromParent function (self, arg__1: Any) -> Any X.mapFromParent(arg__1) -> PythonQt.QtCore.QPoint (shared captured text)
mapTo function (self, arg__1: Any, arg__2: Any) -> Any X.mapTo(arg__1, arg__2) -> PythonQt.QtCore.QPoint (shared captured text)
mapToGlobal function (self, arg__1: Any) -> Any X.mapToGlobal(arg__1) -> PythonQt.QtCore.QPoint (shared captured text)
mapToParent function (self, arg__1: Any) -> Any X.mapToParent(arg__1) -> PythonQt.QtCore.QPoint (shared captured text)
mask function (self) -> Any X.mask() -> PythonQt.QtGui.QRegion (shared captured text)
maximized attribute Any (shared captured text)
maximumHeight attribute Any (shared captured text)
maximumSize attribute QSize (shared captured text)
maximumViewportSize function (self) -> Any X.maximumViewportSize() -> PythonQt.QtCore.QSize
maximumWidth attribute Any (shared captured text)
metaObject function (self) -> Any X.metaObject() -> PythonQt.QtCore.QMetaObject (shared captured text)
metric function (self, arg__1: Any) -> int X.metric(arg__1) -> int (shared captured text)
midLineWidth attribute Any
minimized attribute Any (shared captured text)
minimumHeight attribute Any (shared captured text)
minimumSize attribute QSize (shared captured text)
minimumSizeHint attribute QSize (shared captured text)
minimumWidth attribute Any (shared captured text)
modal attribute Any (shared captured text)
model function (self) -> Any X.model() -> PythonQt.QtCore.QAbstractItemModel
mouseDoubleClickEvent function (self, event: Any) -> None Reimplements: [QAbstractScrollArea::mouseDoubleClickEvent](https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#mouseDoubleClickEvent)(QMouseEvent *e).
mouseGrabber function (self) -> Any X.mouseGrabber() -> PythonQt.QtGui.QWidget (shared captured text)
mouseMoveEvent function (self, event: Any) -> None Reimplements: [QAbstractScrollArea::mouseMoveEvent](https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#mouseMoveEvent)(QMouseEvent *e).
mousePressEvent function (self, event: Any) -> None Reimplements: [QAbstractScrollArea::mousePressEvent](https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#mousePressEvent)(QMouseEvent *e).
mouseReleaseEvent function (self, event: Any) -> None Reimplements: [QAbstractScrollArea::mouseReleaseEvent](https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#mouseReleaseEvent)(QMouseEvent *e).
mouseTracking attribute Any (shared captured text)
move function (self, x: Any, y: Any) -> Any X.move(x, y) (shared captured text)
moveCursor function (self, cursorAction: Any, modifiers: Any) -> Any X.moveCursor(cursorAction, modifiers) -> PythonQt.QtCore.QModelIndex
moveEvent function (self, event: Any) -> Any (shared captured text)
moveToThread function (self, thread: Any) -> Any (shared captured text)
nativeEvent function (self, eventType: Any, message: Any, result: Any) -> bool X.nativeEvent(eventType, message, result) -> bool (shared captured text)
nativeParentWidget function (self) -> Any X.nativeParentWidget() -> PythonQt.QtGui.QWidget (shared captured text)
nextInFocusChain function (self) -> Any X.nextInFocusChain() -> PythonQt.QtGui.QWidget (shared captured text)
normalGeometry attribute QRect (shared captured text)
objectName attribute Any (shared captured text)
objectNameChanged function (self, *args: Any, **kwargs: Any) -> Any Native PythonQt.QtGui.QAbstractItemView.objectNameChanged; argument details are not documented.
openPersistentEditor function (self, index: Any) -> None Opens a persistent editor on the item at the given index.
overrideWindowFlags function (self, type: Any) -> Any (shared captured text)
overrideWindowState function (self, state: Any) -> Any (shared captured text)
paintEngine function (self) -> Any X.paintEngine() -> PythonQt.QtGui.QPaintEngine (shared captured text)
paintEvent function (self, arg__1: Any) -> Any
paintingActive function (self) -> bool X.paintingActive() -> bool (shared captured text)
palette attribute QPalette (shared captured text)
parent function (self) -> Any X.parent() -> PythonQt.private.QObject (shared captured text)
parentWidget function (self) -> Any X.parentWidget() -> PythonQt.QtGui.QWidget (shared captured text)
physicalDpiX function (self) -> int X.physicalDpiX() -> int (shared captured text)
physicalDpiY function (self) -> int X.physicalDpiY() -> int (shared captured text)
pos attribute QPoint (shared captured text)
pressed function (self, *args: Any, **kwargs: Any) -> Any Native PythonQt.QtGui.QAbstractItemView.pressed; argument details are not documented.
previousInFocusChain function (self) -> Any X.previousInFocusChain() -> PythonQt.QtGui.QWidget (shared captured text)
property function (self, name: Any) -> Any X.property(name) -> object (shared captured text)
raise_ function (self) -> Any Native spelling: raise; access it through getattr on the native object. (shared captured text)
rect attribute QRect (shared captured text)
redirected function (self, offset: Any) -> Any X.redirected(offset) -> PythonQt.QtGui.QPaintDevice (shared captured text)
releaseKeyboard function (self) -> Any (shared captured text)
releaseMouse function (self) -> Any (shared captured text)
releaseShortcut function (self, id: Any) -> Any (shared captured text)
removeAction function (self, action: Any) -> Any (shared captured text)
removeEventFilter function (self, obj: Any) -> Any (shared captured text)
render function (self, target: Any, targetOffset: Any, sourceRegion: Any, renderFlags: Any) -> Any X.render(target, targetOffset, sourceRegion, renderFlags) (shared captured text)
repaint function (self, x: Any, y: Any, w: Any, h: Any) -> Any X.repaint(x, y, w, h) (shared captured text)
reset function (self) -> None Reset the internal state of the view.
resize function (self, w: Any, h: Any) -> Any X.resize(w, h) (shared captured text)
resizeEvent function (self, event: Any) -> None Reimplements: [QAbstractScrollArea::resizeEvent](https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#resizeEvent)(QResizeEvent *event).
restoreGeometry function (self, geometry: Any) -> bool X.restoreGeometry(geometry) -> bool (shared captured text)
rootIndex function (self) -> Any X.rootIndex() -> PythonQt.QtCore.QModelIndex
saveGeometry function (self) -> Any X.saveGeometry() -> PythonQt.QtCore.QByteArray (shared captured text)
scheduleDelayedItemsLayout function (self) -> None Schedules a layout of the items in the view to be executed when the event processing starts.
scroll function (self, dx: Any, dy: Any, arg__3: Any) -> Any X.scroll(dx, dy, arg__3) (shared captured text)
scrollBarWidgets function (self, alignment: Any) -> tuple X.scrollBarWidgets(alignment) -> tuple
scrollContentsBy function (self, dx: Any, dy: Any) -> Any X.scrollContentsBy(dx, dy)
scrollDirtyRegion function (self, dx: int, dy: int) -> None X.scrollDirtyRegion(dx, dy)
scrollTo function (self, index: Any, hint: Any) -> None X.scrollTo(index, hint)
scrollToBottom function (self) -> None Scrolls the view to the bottom.
scrollToTop function (self) -> None Scrolls the view to the top.
selectAll function (self) -> None Selects all items in the view.
selectedIndexes function (self) -> tuple X.selectedIndexes() -> tuple
selectionBehavior attribute Any This property holds which selection behavior the view uses
selectionCommand function (self, index: Any, event: Any) -> Any X.selectionCommand(index, event)
selectionMode attribute Any This property holds which selection mode the view operates in
selectionModel function (self) -> Any X.selectionModel() -> PythonQt.QtGui.QItemSelectionModel
sender function (self) -> Any X.sender() -> PythonQt.private.QObject (shared captured text)
senderSignalIndex function (self) -> int X.senderSignalIndex() -> int (shared captured text)
setAcceptDrops function (self, on: Any) -> Any (shared captured text)
setAccessibleDescription function (self, description: Any) -> Any (shared captured text)
setAccessibleName function (self, name: Any) -> Any (shared captured text)
setAlternatingRowColors function (self, enable: bool) -> None
setAttribute function (self, arg__1: Any, on: Any) -> Any X.setAttribute(arg__1, on) (shared captured text)
setAutoFillBackground function (self, enabled: Any) -> Any (shared captured text)
setAutoScroll function (self, enable: bool) -> None
setAutoScrollMargin function (self, margin: int) -> None
setBackgroundRole function (self, arg__1: Any) -> Any (shared captured text)
setBaseSize function (self, basew: Any, baseh: Any) -> Any X.setBaseSize(basew, baseh) (shared captured text)
setContentsMargins function (self, left: Any, top: Any, right: Any, bottom: Any) -> Any X.setContentsMargins(left, top, right, bottom) (shared captured text)
setContextMenuPolicy function (self, policy: Any) -> Any (shared captured text)
setCornerWidget function (self, widget: Any) -> Any
setCurrentIndex function (self, index: Any) -> None Sets the current item to be the item at index.
setCursor function (self, arg__1: Any) -> Any (shared captured text)
setDefaultDropAction function (self, dropAction: Any) -> None
setDirtyRegion function (self, region: Any) -> None Marks the given region as dirty and schedules it to be updated.
setDisabled function (self, a: Any) -> Any (shared captured text)
setDragDropMode function (self, behavior: Any) -> None
setDragDropOverwriteMode function (self, overwrite: bool) -> None
setDragEnabled function (self, enable: bool) -> None
setDropIndicatorShown function (self, enable: bool) -> None
setEditTriggers function (self, triggers: Any) -> None
setEnabled function (self, a: Any) -> Any (shared captured text)
setFixedHeight function (self, h: Any) -> Any (shared captured text)
setFixedSize function (self, w: Any, h: Any) -> Any X.setFixedSize(w, h) (shared captured text)
setFixedWidth function (self, w: Any) -> Any (shared captured text)
setFocus function (self, reason: Any) -> Any (shared captured text)
setFocusPolicy function (self, policy: Any) -> Any (shared captured text)
setFocusProxy function (self, arg__1: Any) -> Any (shared captured text)
setFont function (self, arg__1: Any) -> Any (shared captured text)
setForegroundRole function (self, arg__1: Any) -> Any (shared captured text)
setFrameRect function (self, arg__1: Any) -> Any
setFrameShadow function (self, arg__1: Any) -> Any
setFrameShape function (self, arg__1: Any) -> Any
setFrameStyle function (self, arg__1: Any) -> Any
setGeometry function (self, x: Any, y: Any, w: Any, h: Any) -> Any X.setGeometry(x, y, w, h) (shared captured text)
setGraphicsEffect function (self, effect: Any) -> Any (shared captured text)
setHidden function (self, hidden: Any) -> Any (shared captured text)
setHorizontalScrollBar function (self, scrollbar: Any) -> Any
setHorizontalScrollBarPolicy function (self, arg__1: Any) -> Any
setHorizontalScrollMode function (self, mode: Any) -> None
setIconSize function (self, size: Any) -> None
setIndexWidget function (self, index: Any, widget: Any) -> None X.setIndexWidget(index, widget)
setInputMethodHints function (self, hints: Any) -> Any (shared captured text)
setItemDelegate function (self, delegate: Any) -> None Sets the item delegate for this view and its model to delegate.
setItemDelegateForColumn function (self, column: int, delegate: Any) -> None X.setItemDelegateForColumn(column, delegate)
setItemDelegateForRow function (self, row: int, delegate: Any) -> None X.setItemDelegateForRow(row, delegate)
setLayout function (self, arg__1: Any) -> Any (shared captured text)
setLayoutDirection function (self, direction: Any) -> Any (shared captured text)
setLineWidth function (self, arg__1: Any) -> Any
setLocale function (self, locale: Any) -> Any (shared captured text)
setMask function (self, arg__1: Any) -> Any (shared captured text)
setMaximumHeight function (self, maxh: Any) -> Any (shared captured text)
setMaximumSize function (self, maxw: Any, maxh: Any) -> Any X.setMaximumSize(maxw, maxh) (shared captured text)
setMaximumWidth function (self, maxw: Any) -> Any (shared captured text)
setMidLineWidth function (self, arg__1: Any) -> Any
setMinimumHeight function (self, minh: Any) -> Any (shared captured text)
setMinimumSize function (self, minw: Any, minh: Any) -> Any X.setMinimumSize(minw, minh) (shared captured text)
setMinimumWidth function (self, minw: Any) -> Any (shared captured text)
setModel function (self, model: Any) -> None Sets the model for the view to present.
setMouseTracking function (self, enable: Any) -> Any (shared captured text)
setObjectName function (self, name: Any) -> Any (shared captured text)
setPalette function (self, arg__1: Any) -> Any (shared captured text)
setParent function (self, parent: Any, f: Any) -> Any X.setParent(parent, f) (shared captured text)
setProperty function (self, name: Any, value: Any) -> bool X.setProperty(name, value) -> bool (shared captured text)
setRootIndex function (self, index: Any) -> None Sets the root item to the item at the given index.
setSelection function (self, rect: Any, command: Any) -> None X.setSelection(rect, command)
setSelectionBehavior function (self, behavior: Any) -> None
setSelectionMode function (self, mode: Any) -> None
setSelectionModel function (self, selectionModel: Any) -> None Sets the current selection model to the given selectionModel.
setShortcutAutoRepeat function (self, id: Any, enable: Any) -> Any X.setShortcutAutoRepeat(id, enable) (shared captured text)
setShortcutEnabled function (self, id: Any, enable: Any) -> Any X.setShortcutEnabled(id, enable) (shared captured text)
setSizeAdjustPolicy function (self, policy: Any) -> Any
setSizeIncrement function (self, w: Any, h: Any) -> Any X.setSizeIncrement(w, h) (shared captured text)
setSizePolicy function (self, horizontal: Any, vertical: Any) -> Any X.setSizePolicy(horizontal, vertical) (shared captured text)
setState function (self, state: Any) -> None Sets the item view's state to the given state.
setStatusTip function (self, arg__1: Any) -> Any (shared captured text)
setStyle function (self, arg__1: Any) -> Any (shared captured text)
setStyleSheet function (self, styleSheet: Any) -> Any (shared captured text)
setTabKeyNavigation function (self, enable: bool) -> None
setTabOrder function (self, arg__1: Any, arg__2: Any) -> Any X.setTabOrder(arg__1, arg__2) (shared captured text)
setTextElideMode function (self, mode: Any) -> None
setToolTip function (self, arg__1: Any) -> Any (shared captured text)
setToolTipDuration function (self, msec: Any) -> Any (shared captured text)
setUpdatesEnabled function (self, enable: Any) -> Any (shared captured text)
setVerticalScrollBar function (self, scrollbar: Any) -> Any
setVerticalScrollBarPolicy function (self, arg__1: Any) -> Any
setVerticalScrollMode function (self, mode: Any) -> None
setViewport function (self, widget: Any) -> Any
setViewportMargins function (self, left: Any, top: Any, right: Any, bottom: Any) -> Any X.setViewportMargins(left, top, right, bottom)
setVisible function (self, visible: Any) -> Any (shared captured text)
setWhatsThis function (self, arg__1: Any) -> Any (shared captured text)
setWindowFilePath function (self, filePath: Any) -> Any (shared captured text)
setWindowFlags function (self, type: Any) -> Any (shared captured text)
setWindowIcon function (self, icon: Any) -> Any (shared captured text)
setWindowIconText function (self, arg__1: Any) -> Any (shared captured text)
setWindowModality function (self, windowModality: Any) -> Any (shared captured text)
setWindowModified function (self, a: Any) -> Any (shared captured text)
setWindowOpacity function (self, level: Any) -> Any (shared captured text)
setWindowRole function (self, arg__1: Any) -> Any (shared captured text)
setWindowState function (self, state: Any) -> Any (shared captured text)
setWindowTitle function (self, a: Any) -> Any (shared captured text)
setupViewport function (self, viewport: Any) -> Any
sharedPainter function (self) -> Any X.sharedPainter() -> PythonQt.QtGui.QPainter (shared captured text)
show function (self) -> Any (shared captured text)
showDropIndicator attribute bool This property holds whether the drop indicator is shown when dragging items and dropping.
showEvent function (self, event: Any) -> Any (shared captured text)
showFullScreen function (self) -> Any (shared captured text)
showMaximized function (self) -> Any (shared captured text)
showMinimized function (self) -> Any (shared captured text)
showNormal function (self) -> Any (shared captured text)
signalsBlocked function (self) -> bool X.signalsBlocked() -> bool (shared captured text)
size attribute QSize (shared captured text)
sizeAdjustPolicy attribute Any
sizeHint attribute QSize (shared captured text)
sizeHintForColumn function (self, column: int) -> int X.sizeHintForColumn(column) -> int
sizeHintForIndex function (self, index: Any) -> Any X.sizeHintForIndex(index) -> PythonQt.QtCore.QSize
sizeHintForRow function (self, row: int) -> int X.sizeHintForRow(row) -> int
sizeIncrement attribute QSize (shared captured text)
sizePolicy attribute QSizePolicy (shared captured text)
stackUnder function (self, arg__1: Any) -> Any (shared captured text)
startAutoScroll function (self) -> None
startDrag function (self, supportedActions: Any) -> None Starts a drag by calling drag-\>exec() using the given supportedActions.
startTimer function (self, interval: Any, timerType: Any) -> int X.startTimer(interval, timerType) -> int (shared captured text)
state function (self) -> int X.state() -> int
statusTip attribute Any (shared captured text)
stopAutoScroll function (self) -> None
style function (self) -> Any X.style() -> PythonQt.QtGui.QStyle (shared captured text)
styleSheet attribute Any (shared captured text)
tabKeyNavigation attribute bool This property holds whether item navigation with tab and backtab is enabled.
tabletEvent function (self, event: Any) -> Any (shared captured text)
tabletTracking attribute Any (shared captured text)
testAttribute function (self, arg__1: Any) -> bool X.testAttribute(arg__1) -> bool (shared captured text)
textElideMode attribute Any This property holds the position of the "..." in elided text.
thread function (self) -> Any (shared captured text)
timerEvent function (self, event: Any) -> None Reimplements: [QObject::timerEvent](https://doc.qt.io/archives/qt-5.15/qobject.html#timerEvent)(QTimerEvent *event).
toolTip attribute Any (shared captured text)
toolTipDuration attribute Any (shared captured text)
tr function (self, text: Any, ambig: Any, n: Any) -> str X.tr(text, ambig, n) -> str (shared captured text)
underMouse function (self) -> bool X.underMouse() -> bool (shared captured text)
ungrabGesture function (self, type: Any) -> Any (shared captured text)
unsetCursor function (self) -> Any (shared captured text)
unsetLayoutDirection function (self) -> Any (shared captured text)
unsetLocale function (self) -> Any (shared captured text)
update function (self, theWrappedObject: Any, x: Any, y: Any, w: Any, h: Any) -> None X.update(theWrappedObject, x, y, w, h)
updateGeometry function (self) -> Any (shared captured text)
updatesEnabled attribute Any (shared captured text)
verticalOffset function (self) -> int X.verticalOffset() -> int
verticalScrollBar function (self) -> Any X.verticalScrollBar() -> PythonQt.QtGui.QScrollBar
verticalScrollBarPolicy attribute Any
verticalScrollMode attribute Any How the view scrolls its contents in the vertical direction
viewOptions function (self) -> Any X.viewOptions() -> PythonQt.QtGui.QStyleOptionViewItem
viewport function (self) -> Any X.viewport() -> PythonQt.QtGui.QWidget
viewportEntered function (self, *args: Any, **kwargs: Any) -> Any Native PythonQt.QtGui.QAbstractItemView.viewportEntered; argument details are not documented.
viewportEvent function (self, event: Any) -> bool X.viewportEvent(event) -> bool
viewportMargins function (self) -> Any X.viewportMargins() -> PythonQt.QtGui.QMargins
viewportSizeHint function (self) -> Any X.viewportSizeHint() -> PythonQt.QtCore.QSize
visible attribute Any (shared captured text)
visibleRegion function (self) -> Any X.visibleRegion() -> PythonQt.QtGui.QRegion (shared captured text)
visualRect function (self, index: Any) -> Any X.visualRect(index) -> PythonQt.QtCore.QRect
visualRegionForSelection function (self, selection: Any) -> Any X.visualRegionForSelection(selection) -> PythonQt.QtGui.QRegion
whatsThis attribute Any (shared captured text)
wheelEvent function (self, arg__1: Any) -> Any
width attribute Any (shared captured text)
widthMM function (self) -> int X.widthMM() -> int (shared captured text)
winId function (self) -> int X.winId() -> int (shared captured text)
window function (self) -> Any X.window() -> PythonQt.QtGui.QWidget (shared captured text)
windowFilePath attribute Any (shared captured text)
windowFlags function (self) -> Any (shared captured text)
windowHandle function (self) -> Any X.windowHandle() -> PythonQt.QtGui.QWindow (shared captured text)
windowIcon attribute QIcon (shared captured text)
windowIconChanged function (self, *args: Any, **kwargs: Any) -> Any Native PythonQt.QtGui.QAbstractItemView.windowIconChanged; argument details are not documented.
windowIconText attribute Any (shared captured text)
windowIconTextChanged function (self, *args: Any, **kwargs: Any) -> Any Native PythonQt.QtGui.QAbstractItemView.windowIconTextChanged; argument details are not documented.
windowModality attribute Any (shared captured text)
windowModified attribute Any (shared captured text)
windowOpacity attribute Any (shared captured text)
windowRole function (self) -> str X.windowRole() -> str (shared captured text)
windowState function (self) -> Any (shared captured text)
windowTitle attribute Any (shared captured text)
windowTitleChanged function (self, *args: Any, **kwargs: Any) -> Any Native PythonQt.QtGui.QAbstractItemView.windowTitleChanged; argument details are not documented.
windowType function (self) -> Any (shared captured text)
x attribute Any (shared captured text)
y attribute Any (shared captured text)