PythonQt.QtGui.QAbstractItemView · declarations 006
Back to PythonQt.QtGui.QAbstractItemView
setVerticalScrollBar
setVerticalScrollBar(scrollbar: Any) -> Any
X.setVerticalScrollBar(scrollbar)
setVerticalScrollBarPolicy
setVerticalScrollBarPolicy(arg__1: Any) -> Any
X.setVerticalScrollBarPolicy(arg__1)
setVerticalScrollMode
setVerticalScrollMode(mode: Any) -> None
X.setVerticalScrollMode(mode)
Upstream PySide2 reference signatures (binding differences may apply):
setVerticalScrollMode(self, mode: PySide2.QtWidgets.QAbstractItemView.ScrollMode) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstractitemview.html#setVerticalScrollMode
setViewport
setViewport(widget: Any) -> Any
X.setViewport(widget)
setViewportMargins
setViewportMargins(left: Any, top: Any, right: Any, bottom: Any) -> Any
X.setViewportMargins(left, top, right, bottom)
setupViewport
setupViewport(viewport: Any) -> Any
X.setupViewport(viewport)
showDropIndicator
instance-attribute
showDropIndicator: bool
Qt 5 reference:
showDropIndicator : bool
This property holds whether the drop indicator is shown when dragging items and dropping.
Access functions:
| bool | showDropIndicator() const |
|---|---|
| void | setDropIndicatorShown(bool enable) |
See also dragEnabled, DragDropMode, dragDropOverwriteMode, and acceptDrops.
Source: https://doc.qt.io/archives/qt-5.15/qabstractitemview.html#showDropIndicator
sizeAdjustPolicy
instance-attribute
sizeAdjustPolicy: Any
sizeHintForColumn
sizeHintForColumn(column: int) -> int
X.sizeHintForColumn(column) -> int
Supplemental documentation: Qt 5 reference:
[virtual] int QAbstractItemView::sizeHintForColumn(int column) const
Returns the width size hint for the specified column or -1 if there is no model.
This function is used in views with a horizontal header to find the size hint for a header section based on the contents of the given column.
See also sizeHintForRow().
Upstream PySide2 reference signatures (binding differences may apply):
sizeHintForColumn(self, column: int) -> int
Source: https://doc.qt.io/archives/qt-5.15/qabstractitemview.html#sizeHintForColumn
sizeHintForIndex
sizeHintForIndex(index: Any) -> Any
X.sizeHintForIndex(index) -> PythonQt.QtCore.QSize
Supplemental documentation: Qt 5 reference:
QSize QAbstractItemView::sizeHintForIndex(const QModelIndex \&index) const
Returns the size hint for the item with the specified index or an invalid size for invalid indexes.
See also sizeHintForRow() and sizeHintForColumn().
Upstream PySide2 reference signatures (binding differences may apply):
sizeHintForIndex(self, index: PySide2.QtCore.QModelIndex) -> PySide2.QtCore.QSize
Source: https://doc.qt.io/archives/qt-5.15/qabstractitemview.html#sizeHintForIndex
sizeHintForRow
sizeHintForRow(row: int) -> int
X.sizeHintForRow(row) -> int
Supplemental documentation: Qt 5 reference:
[virtual] int QAbstractItemView::sizeHintForRow(int row) const
Returns the height size hint for the specified row or -1 if there is no model.
The returned height is calculated using the size hints of the given row's items, i.e. the returned value is the maximum height among the items. Note that to control the height of a row, you must reimplement the QAbstractItemDelegate::sizeHint() function.
This function is used in views with a vertical header to find the size hint for a header section based on the contents of the given row.
See also sizeHintForColumn().
Upstream PySide2 reference signatures (binding differences may apply):
sizeHintForRow(self, row: int) -> int
Source: https://doc.qt.io/archives/qt-5.15/qabstractitemview.html#sizeHintForRow
startAutoScroll
startAutoScroll() -> None
X.startAutoScroll()
Upstream PySide2 reference signatures (binding differences may apply):
startAutoScroll(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstractitemview.html#startAutoScroll
startDrag
startDrag(supportedActions: Any) -> None
X.startDrag(supportedActions)
Supplemental documentation: Qt 5 reference:
[virtual protected] void QAbstractItemView::startDrag(Qt::DropActions supportedActions)
Starts a drag by calling drag->exec() using the given 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/qabstractitemview.html#startDrag
state
state() -> int
X.state() -> int
Supplemental documentation: Qt 5 reference:
[protected] QAbstractItemView::State QAbstractItemView::state() const
Returns the item view's state.
See also setState().
Upstream PySide2 reference signatures (binding differences may apply):
state(self) -> PySide2.QtWidgets.QAbstractItemView.State
Source: https://doc.qt.io/archives/qt-5.15/qabstractitemview.html#state
stopAutoScroll
stopAutoScroll() -> None
X.stopAutoScroll()
Upstream PySide2 reference signatures (binding differences may apply):
stopAutoScroll(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstractitemview.html#stopAutoScroll
tabKeyNavigation
instance-attribute
tabKeyNavigation: bool
Qt 5 reference:
tabKeyNavigation : bool
This property holds whether item navigation with tab and backtab is enabled.
Access functions:
| bool | tabKeyNavigation() const |
|---|---|
| void | setTabKeyNavigation(bool enable) |
Source: https://doc.qt.io/archives/qt-5.15/qabstractitemview.html#tabKeyNavigation
textElideMode
instance-attribute
textElideMode: Any
Qt 5 reference:
textElideMode : Qt::TextElideMode
This property holds the position of the "..." in elided text.
The default value for all item views is Qt::ElideRight.
Access functions:
| Qt::TextElideMode | textElideMode() const |
|---|---|
| void | setTextElideMode(Qt::TextElideMode mode) |
Source: https://doc.qt.io/archives/qt-5.15/qabstractitemview.html#textElideMode
timerEvent
timerEvent(event: Any) -> None
X.timerEvent(event)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QAbstractItemView::timerEvent(QTimerEvent *event)
Reimplements: QObject::timerEvent(QTimerEvent *event).
This function is called with the given event when a timer event is sent to the widget.
See also QObject::timerEvent().
Upstream PySide2 reference signatures (binding differences may apply):
timerEvent(self, event: PySide2.QtCore.QTimerEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstractitemview.html#timerEvent
update
update(theWrappedObject: Any, x: Any, y: Any, w: Any, h: Any) -> None
X.update(theWrappedObject, x, y, w, h)
Supplemental documentation: Qt 5 reference:
[slot] void QAbstractItemView::update(const QModelIndex \&index)
Updates the area occupied by the given index.
This function was introduced in Qt 4.3.
Upstream PySide2 reference signatures (binding differences may apply):
update(self) -> None
update(self, index: PySide2.QtCore.QModelIndex) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstractitemview.html#update
verticalOffset
verticalOffset() -> int
X.verticalOffset() -> int
Supplemental documentation: Qt 5 reference:
[pure virtual protected] int QAbstractItemView::verticalOffset() const
Returns the vertical offset of the view.
In the base class this is a pure virtual function.
See also horizontalOffset().
Upstream PySide2 reference signatures (binding differences may apply):
verticalOffset(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qabstractitemview.html#verticalOffset
verticalScrollBar
verticalScrollBar() -> Any
X.verticalScrollBar() -> PythonQt.QtGui.QScrollBar
verticalScrollBarPolicy
instance-attribute
verticalScrollBarPolicy: Any
verticalScrollMode
instance-attribute
verticalScrollMode: Any
Qt 5 reference:
verticalScrollMode : ScrollMode
how the view scrolls its contents in the vertical direction
This property controls how the view scroll its contents vertically. Scrolling can be done either per pixel or per item. Its default value comes from the style via the QStyle::SH_ItemView_ScrollMode style hint.
This property was introduced in Qt 4.2.
Access functions:
| QAbstractItemView::ScrollMode | verticalScrollMode() const |
|---|---|
| void | setVerticalScrollMode(QAbstractItemView::ScrollMode mode) |
| void | resetVerticalScrollMode() |
Source: https://doc.qt.io/archives/qt-5.15/qabstractitemview.html#verticalScrollMode
viewOptions
viewOptions() -> Any
X.viewOptions() -> PythonQt.QtGui.QStyleOptionViewItem
Supplemental documentation: Qt 5 reference:
[virtual protected] QStyleOptionViewItem QAbstractItemView::viewOptions() const
Returns a QStyleOptionViewItem structure populated with the view's palette, font, state, alignments etc.
Upstream PySide2 reference signatures (binding differences may apply):
viewOptions(self) -> PySide2.QtWidgets.QStyleOptionViewItem
Source: https://doc.qt.io/archives/qt-5.15/qabstractitemview.html#viewOptions
viewport
viewport() -> Any
X.viewport() -> PythonQt.QtGui.QWidget
viewportEntered
viewportEntered(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QAbstractItemView.viewportEntered; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QAbstractItemView::viewportEntered()
This signal is emitted when the mouse cursor enters the viewport. Mouse tracking needs to be enabled for this feature to work.
See also entered().
Source: https://doc.qt.io/archives/qt-5.15/qabstractitemview.html#viewportEntered
viewportEvent
viewportEvent(event: Any) -> bool
X.viewportEvent(event) -> bool
Supplemental documentation: Qt 5 reference:
[override virtual protected] bool QAbstractItemView::viewportEvent(QEvent *event)
Reimplements: QAbstractScrollArea::viewportEvent(QEvent *event).
This function is used to handle tool tips, and What's This? mode, if the given event is a QEvent::ToolTip,or a QEvent::WhatsThis. It passes all other events on to its base class viewportEvent() handler.
Returns true if event has been recognized and processed; otherwise, returns false.
Upstream PySide2 reference signatures (binding differences may apply):
viewportEvent(self, event: PySide2.QtCore.QEvent) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qabstractitemview.html#viewportEvent
viewportMargins
viewportMargins() -> Any
X.viewportMargins() -> PythonQt.QtGui.QMargins
viewportSizeHint
viewportSizeHint() -> Any
X.viewportSizeHint() -> PythonQt.QtCore.QSize
Supplemental documentation: Qt 5 reference:
[override virtual protected] QSize QAbstractItemView::viewportSizeHint() const
Reimplements: QAbstractScrollArea::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/qabstractitemview.html#viewportSizeHint
visualRect
visualRect(index: Any) -> Any
X.visualRect(index) -> PythonQt.QtCore.QRect
Supplemental documentation: Qt 5 reference:
[pure virtual] QRect QAbstractItemView::visualRect(const QModelIndex \&index) const
Returns the rectangle on the viewport occupied by the item at index.
If your item is displayed in several areas then visualRect should return the primary area that contains index and not the complete area that index might encompasses, touch or cause drawing.
In the base class this is a pure virtual function.
See also indexAt() and visualRegionForSelection().
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/qabstractitemview.html#visualRect
visualRegionForSelection
visualRegionForSelection(selection: Any) -> Any
X.visualRegionForSelection(selection) -> PythonQt.QtGui.QRegion
Supplemental documentation: Qt 5 reference:
[pure virtual protected] QRegion QAbstractItemView::visualRegionForSelection(const QItemSelection \&selection) const
Returns the region from the viewport of the items in the given selection.
In the base class this is a pure virtual function.
See also visualRect() and selectedIndexes().
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/qabstractitemview.html#visualRegionForSelection
wheelEvent
wheelEvent(arg__1: Any) -> Any
X.wheelEvent(arg__1)
windowIconChanged
windowIconChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QAbstractItemView.windowIconChanged; argument details are not documented.
windowIconTextChanged
windowIconTextChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QAbstractItemView.windowIconTextChanged; argument details are not documented.
windowTitleChanged
windowTitleChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QAbstractItemView.windowTitleChanged; argument details are not documented.