PythonQt.QtGui.QAbstractItemView · declarations 003
Back to PythonQt.QtGui.QAbstractItemView
changeEvent
changeEvent(arg__1: Any) -> Any
X.changeEvent(arg__1)
clearSelection
clearSelection() -> None
X.clearSelection()
Supplemental documentation: Qt 5 reference:
[slot] void QAbstractItemView::clearSelection()
Deselects all selected items. The current index will not be changed.
See also setSelection() and selectAll().
Upstream PySide2 reference signatures (binding differences may apply):
clearSelection(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstractitemview.html#clearSelection
clicked
clicked(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QAbstractItemView.clicked; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QAbstractItemView::clicked(const QModelIndex \&index)
This signal is emitted when a mouse button is left-clicked. The item the mouse was clicked on is specified by index. The signal is only emitted when the index is valid.
See also activated(), doubleClicked(), entered(), and pressed().
Source: https://doc.qt.io/archives/qt-5.15/qabstractitemview.html#clicked
closePersistentEditor
closePersistentEditor(index: Any) -> None
X.closePersistentEditor(index)
Supplemental documentation: Qt 5 reference:
void QAbstractItemView::closePersistentEditor(const QModelIndex \&index)
Closes the persistent editor for the item at the given index.
See also openPersistentEditor() and isPersistentEditorOpen().
Upstream PySide2 reference signatures (binding differences may apply):
closePersistentEditor(self, index: PySide2.QtCore.QModelIndex) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstractitemview.html#closePersistentEditor
contextMenuEvent
contextMenuEvent(arg__1: Any) -> Any
X.contextMenuEvent(arg__1)
cornerWidget
cornerWidget() -> Any
X.cornerWidget() -> PythonQt.QtGui.QWidget
currentIndex
currentIndex() -> Any
X.currentIndex() -> PythonQt.QtCore.QModelIndex
Supplemental documentation: Qt 5 reference:
QModelIndex QAbstractItemView::currentIndex() const
Returns the model index of the current item.
See also setCurrentIndex().
Upstream PySide2 reference signatures (binding differences may apply):
currentIndex(self) -> PySide2.QtCore.QModelIndex
Source: https://doc.qt.io/archives/qt-5.15/qabstractitemview.html#currentIndex
customContextMenuRequested
customContextMenuRequested(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QAbstractItemView.customContextMenuRequested; argument details are not documented.
defaultDropAction
instance-attribute
defaultDropAction: Any
Qt 5 reference:
defaultDropAction : Qt::DropAction
This property holds the drop action that will be used by default in QAbstractItemView::drag()
If the property is not set, the drop action is CopyAction when the supported actions support CopyAction.
This property was introduced in Qt 4.6.
Access functions:
| Qt::DropAction | defaultDropAction() const |
|---|---|
| void | setDefaultDropAction(Qt::DropAction dropAction) |
See also showDropIndicator and dragDropOverwriteMode.
Source: https://doc.qt.io/archives/qt-5.15/qabstractitemview.html#defaultDropAction
destroyed
destroyed(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QAbstractItemView.destroyed; argument details are not documented.
dirtyRegionOffset
dirtyRegionOffset() -> Any
X.dirtyRegionOffset() -> PythonQt.QtCore.QPoint
Supplemental documentation: Qt 5 reference:
[protected] QPoint QAbstractItemView::dirtyRegionOffset() const
Returns the offset of the dirty regions in the view.
If you use scrollDirtyRegion() and implement a paintEvent() in a subclass of QAbstractItemView, you should translate the area given by the paint event with the offset returned from this function.
See also scrollDirtyRegion() and setDirtyRegion().
Upstream PySide2 reference signatures (binding differences may apply):
dirtyRegionOffset(self) -> PySide2.QtCore.QPoint
Source: https://doc.qt.io/archives/qt-5.15/qabstractitemview.html#dirtyRegionOffset
doAutoScroll
doAutoScroll() -> None
X.doAutoScroll()
Upstream PySide2 reference signatures (binding differences may apply):
doAutoScroll(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstractitemview.html#doAutoScroll
doItemsLayout
doItemsLayout() -> None
X.doItemsLayout()
Upstream PySide2 reference signatures (binding differences may apply):
doItemsLayout(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstractitemview.html#doItemsLayout
doubleClicked
doubleClicked(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QAbstractItemView.doubleClicked; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QAbstractItemView::doubleClicked(const QModelIndex \&index)
This signal is emitted when a mouse button is double-clicked. The item the mouse was double-clicked on is specified by index. The signal is only emitted when the index is valid.
See also clicked() and activated().
Source: https://doc.qt.io/archives/qt-5.15/qabstractitemview.html#doubleClicked
dragDropMode
instance-attribute
dragDropMode: Any
Qt 5 reference:
dragDropMode : DragDropMode
This property holds the drag and drop event the view will act upon
This property was introduced in Qt 4.2.
Access functions:
| QAbstractItemView::DragDropMode | dragDropMode() const |
|---|---|
| void | setDragDropMode(QAbstractItemView::DragDropMode behavior) |
See also showDropIndicator and dragDropOverwriteMode.
Source: https://doc.qt.io/archives/qt-5.15/qabstractitemview.html#dragDropMode
dragDropOverwriteMode
instance-attribute
dragDropOverwriteMode: bool
Qt 5 reference:
dragDropOverwriteMode : bool
This property holds the view's drag and drop behavior
If its value is true, the selected data will overwrite the existing item data when
dropped, while moving the data will clear the item. If its value is false, the
selected data will be inserted as a new item when the data is dropped. When the data is
moved, the item is removed as well.
The default value is false, as in the
QListView and
QTreeView subclasses. In the
QTableView subclass, on the other
hand, the property has been set to true.
Note: This is not intended to prevent overwriting of items. The model's implementation of flags() should do that by not returning Qt::ItemIsDropEnabled.
This property was introduced in Qt 4.2.
Access functions:
| bool | dragDropOverwriteMode() const |
|---|---|
| void | setDragDropOverwriteMode(bool overwrite) |
See also dragDropMode.
Source: https://doc.qt.io/archives/qt-5.15/qabstractitemview.html#dragDropOverwriteMode
dragEnabled
instance-attribute
dragEnabled: bool
Qt 5 reference:
dragEnabled : bool
This property holds whether the view supports dragging of its own items
Access functions:
| bool | dragEnabled() const |
|---|---|
| void | setDragEnabled(bool enable) |
See also showDropIndicator, DragDropMode, dragDropOverwriteMode, and acceptDrops.
Source: https://doc.qt.io/archives/qt-5.15/qabstractitemview.html#dragEnabled
dragEnterEvent
dragEnterEvent(event: Any) -> None
X.dragEnterEvent(event)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QAbstractItemView::dragEnterEvent(QDragEnterEvent *event)
Reimplements: QAbstractScrollArea::dragEnterEvent(QDragEnterEvent *event).
This function is called with the given event when a drag and drop operation enters the widget. If the drag is over a valid dropping place (e.g. over an item that accepts drops), the event is accepted; otherwise it is ignored.
See also dropEvent() and startDrag().
Upstream PySide2 reference signatures (binding differences may apply):
dragEnterEvent(self, event: PySide2.QtGui.QDragEnterEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstractitemview.html#dragEnterEvent
dragLeaveEvent
dragLeaveEvent(event: Any) -> None
X.dragLeaveEvent(event)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QAbstractItemView::dragLeaveEvent(QDragLeaveEvent *event)
Reimplements: QAbstractScrollArea::dragLeaveEvent(QDragLeaveEvent *event).
This function is called when the item being dragged leaves the view. The event describes the state of the drag and drop operation.
Upstream PySide2 reference signatures (binding differences may apply):
dragLeaveEvent(self, event: PySide2.QtGui.QDragLeaveEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstractitemview.html#dragLeaveEvent
dragMoveEvent
dragMoveEvent(event: Any) -> None
X.dragMoveEvent(event)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QAbstractItemView::dragMoveEvent(QDragMoveEvent *event)
Reimplements: QAbstractScrollArea::dragMoveEvent(QDragMoveEvent *event).
This function is called continuously with the given event during a drag and drop operation over the widget. It can cause the view to scroll if, for example, the user drags a selection to view's right or bottom edge. In this case, the event will be accepted; otherwise it will be ignored.
See also dropEvent() and startDrag().
Upstream PySide2 reference signatures (binding differences may apply):
dragMoveEvent(self, event: PySide2.QtGui.QDragMoveEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstractitemview.html#dragMoveEvent
drawFrame
drawFrame(arg__1: Any) -> Any
X.drawFrame(arg__1)
dropEvent
dropEvent(event: Any) -> None
X.dropEvent(event)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QAbstractItemView::dropEvent(QDropEvent *event)
Reimplements: QAbstractScrollArea::dropEvent(QDropEvent *event).
This function is called with the given event when a drop event occurs over the widget. If the model accepts the even position the drop event is accepted; otherwise it is ignored.
See also startDrag().
Upstream PySide2 reference signatures (binding differences may apply):
dropEvent(self, event: PySide2.QtGui.QDropEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstractitemview.html#dropEvent
dropIndicatorPosition
dropIndicatorPosition() -> int
X.dropIndicatorPosition() -> int
Supplemental documentation: Qt 5 reference:
[protected] QAbstractItemView::DropIndicatorPosition QAbstractItemView::dropIndicatorPosition() const
Returns the position of the drop indicator in relation to the closest item.
This function was introduced in Qt 4.1.
Upstream PySide2 reference signatures (binding differences may apply):
dropIndicatorPosition(self) -> PySide2.QtWidgets.QAbstractItemView.DropIndicatorPosition
Source: https://doc.qt.io/archives/qt-5.15/qabstractitemview.html#dropIndicatorPosition
edit
edit(index: Any, trigger: Any, event: Any) -> bool
X.edit(index, trigger, event) -> bool
Supplemental documentation: Qt 5 reference:
[slot] void QAbstractItemView::edit(const QModelIndex \&index)
Starts editing the item corresponding to the given index if it is editable.
Note that this function does not change the current index. Since the current index defines the next and previous items to edit, users may find that keyboard navigation does not work as expected. To provide consistent navigation behavior, call setCurrentIndex() before this function with the same model index.
See also QModelIndex::flags().
[virtual protected] bool QAbstractItemView::edit(const QModelIndex \&index, QAbstractItemView::EditTrigger trigger, QEvent *event)
Starts editing the item at index, creating an editor if necessary, and returns true
if the view's
State is now
EditingState;
otherwise returns false.
The action that caused the editing process is described by trigger, and the associated event is specified by event.
Editing can be forced by specifying the trigger to be QAbstractItemView::AllEditTriggers.
See also closeEditor().
Upstream PySide2 reference signatures (binding differences may apply):
edit(self, index: PySide2.QtCore.QModelIndex) -> None
edit(self, index: PySide2.QtCore.QModelIndex, trigger: PySide2.QtWidgets.QAbstractItemView.EditTrigger, event: PySide2.QtCore.QEvent) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qabstractitemview.html#edit
editTriggers
instance-attribute
editTriggers: Any
Qt 5 reference:
editTriggers : EditTriggers
This property holds which actions will initiate item editing
This property is a selection of flags defined by EditTrigger, combined using the OR operator. The view will only initiate the editing of an item if the action performed is set in this property.
Access functions:
| QAbstractItemView::EditTriggers | editTriggers() const |
|---|---|
| void | setEditTriggers(QAbstractItemView::EditTriggers triggers) |
Source: https://doc.qt.io/archives/qt-5.15/qabstractitemview.html#editTriggers
entered
entered(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QAbstractItemView.entered; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QAbstractItemView::entered(const QModelIndex \&index)
This signal is emitted when the mouse cursor enters the item specified by index. Mouse tracking needs to be enabled for this feature to work.
See also viewportEntered(), activated(), clicked(), doubleClicked(), and pressed().
Source: https://doc.qt.io/archives/qt-5.15/qabstractitemview.html#entered
event
event(event: Any) -> bool
X.event(event) -> bool
Supplemental documentation: Qt 5 reference:
[override virtual protected] bool QAbstractItemView::event(QEvent *event)
Reimplements: QAbstractScrollArea::event(QEvent *event).
Upstream PySide2 reference signatures (binding differences may apply):
event(self, event: PySide2.QtCore.QEvent) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qabstractitemview.html#event
eventFilter
eventFilter(arg__1: Any, arg__2: Any) -> bool
X.eventFilter(arg__1, arg__2) -> bool
Supplemental documentation: Qt 5 reference:
[override virtual protected] bool QAbstractItemView::eventFilter(QObject *object, QEvent *event)
Reimplements: QObject::eventFilter(QObject *watched, QEvent *event).
Upstream PySide2 reference signatures (binding differences may apply):
eventFilter(self, object: PySide2.QtCore.QObject, event: PySide2.QtCore.QEvent) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qabstractitemview.html#eventFilter
executeDelayedItemsLayout
executeDelayedItemsLayout() -> None
X.executeDelayedItemsLayout()
Supplemental documentation: Qt 5 reference:
[protected] void QAbstractItemView::executeDelayedItemsLayout()
Executes the scheduled layouts without waiting for the event processing to begin.
See also scheduleDelayedItemsLayout().
Upstream PySide2 reference signatures (binding differences may apply):
executeDelayedItemsLayout(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstractitemview.html#executeDelayedItemsLayout
focusInEvent
focusInEvent(event: Any) -> None
X.focusInEvent(event)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QAbstractItemView::focusInEvent(QFocusEvent *event)
Reimplements: QWidget::focusInEvent(QFocusEvent *event).
This function is called with the given event when the widget obtains the focus. By default, the event is ignored.
See also setFocus() and focusOutEvent().
Upstream PySide2 reference signatures (binding differences may apply):
focusInEvent(self, event: PySide2.QtGui.QFocusEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstractitemview.html#focusInEvent
focusNextPrevChild
focusNextPrevChild(next: bool) -> bool
X.focusNextPrevChild(next) -> bool
Supplemental documentation: Qt 5 reference:
[override virtual protected] bool QAbstractItemView::focusNextPrevChild(bool next)
Reimplements: QWidget::focusNextPrevChild(bool next).
Upstream PySide2 reference signatures (binding differences may apply):
focusNextPrevChild(self, next: bool) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qabstractitemview.html#focusNextPrevChild
focusOutEvent
focusOutEvent(event: Any) -> None
X.focusOutEvent(event)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QAbstractItemView::focusOutEvent(QFocusEvent *event)
Reimplements: QWidget::focusOutEvent(QFocusEvent *event).
This function is called with the given event when the widget loses the focus. By default, the event is ignored.
See also clearFocus() and focusInEvent().
Upstream PySide2 reference signatures (binding differences may apply):
focusOutEvent(self, event: PySide2.QtGui.QFocusEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstractitemview.html#focusOutEvent
frameRect
instance-attribute
frameRect: QRect
frameShadow
instance-attribute
frameShadow: Any
frameShape
instance-attribute
frameShape: Any
frameStyle
frameStyle() -> int
X.frameStyle() -> int
frameWidth
instance-attribute
frameWidth: Any
hasAutoScroll
hasAutoScroll() -> bool
X.hasAutoScroll() -> bool
Upstream PySide2 reference signatures (binding differences may apply):
hasAutoScroll(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qabstractitemview.html#hasAutoScroll
horizontalOffset
horizontalOffset() -> int
X.horizontalOffset() -> int
Supplemental documentation: Qt 5 reference:
[pure virtual protected] int QAbstractItemView::horizontalOffset() const
Returns the horizontal offset of the view.
In the base class this is a pure virtual function.
See also verticalOffset().
Upstream PySide2 reference signatures (binding differences may apply):
horizontalOffset(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qabstractitemview.html#horizontalOffset
horizontalScrollBar
horizontalScrollBar() -> Any
X.horizontalScrollBar() -> PythonQt.QtGui.QScrollBar