Skip to content

PythonQt.QtGui.QAbstractScrollArea · declarations 001

Back to PythonQt.QtGui.QAbstractScrollArea

addScrollBarWidget

addScrollBarWidget(widget: Any, alignment: Any) -> None

X.addScrollBarWidget(widget, alignment)

Supplemental documentation: Qt 5 reference:

void QAbstractScrollArea::addScrollBarWidget(QWidget *widget, Qt::Alignment alignment)

Adds widget as a scroll bar widget in the location specified by alignment.

Scroll bar widgets are shown next to the horizontal or vertical scroll bar, and can be placed on either side of it. If you want the scroll bar widgets to be always visible, set the scrollBarPolicy for the corresponding scroll bar to AlwaysOn.

alignment must be one of Qt::Alignleft and Qt::AlignRight, which maps to the horizontal scroll bar, or Qt::AlignTop and Qt::AlignBottom, which maps to the vertical scroll bar.

A scroll bar widget can be removed by either re-parenting the widget or deleting it. It's also possible to hide a widget with QWidget::hide()

The scroll bar widget will be resized to fit the scroll bar geometry for the current style. The following describes the case for scroll bar widgets on the horizontal scroll bar:

The height of the widget will be set to match the height of the scroll bar. To control the width of the widget, use QWidget::setMinimumWidth and QWidget::setMaximumWidth, or implement QWidget::sizeHint() and set a horizontal size policy. If you want a square widget, call QStyle::pixelMetric(QStyle::PM_ScrollBarExtent) and set the width to this value.

This function was introduced in Qt 4.2.

See also scrollBarWidgets().

Upstream PySide2 reference signatures (binding differences may apply):

addScrollBarWidget(self, widget: PySide2.QtWidgets.QWidget, alignment: PySide2.QtCore.Qt.Alignment) -> None

Source: https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#addScrollBarWidget

contextMenuEvent

contextMenuEvent(arg__1: Any) -> None

X.contextMenuEvent(arg__1)

Supplemental documentation: Qt 5 reference:

[override virtual protected] void QAbstractScrollArea::contextMenuEvent(QContextMenuEvent *e)

Reimplements: QWidget::contextMenuEvent(QContextMenuEvent *event).

This event handler can be reimplemented in a subclass to receive context menu events for the viewport() widget. The event is passed in e.

See also QWidget::contextMenuEvent().

Upstream PySide2 reference signatures (binding differences may apply):

contextMenuEvent(self, arg__1: PySide2.QtGui.QContextMenuEvent) -> None

Source: https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#contextMenuEvent

cornerWidget

cornerWidget() -> Any

X.cornerWidget() -> PythonQt.QtGui.QWidget

Supplemental documentation: Qt 5 reference:

QWidget *QAbstractScrollArea::cornerWidget() const

Returns the widget in the corner between the two scroll bars.

By default, no corner widget is present.

This function was introduced in Qt 4.2.

See also setCornerWidget().

Upstream PySide2 reference signatures (binding differences may apply):

cornerWidget(self) -> PySide2.QtWidgets.QWidget

Source: https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#cornerWidget

customContextMenuRequested

customContextMenuRequested(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QAbstractScrollArea.customContextMenuRequested; argument details are not documented.

destroyed

destroyed(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QAbstractScrollArea.destroyed; argument details are not documented.

dragEnterEvent

dragEnterEvent(arg__1: Any) -> None

X.dragEnterEvent(arg__1)

Supplemental documentation: Qt 5 reference:

[override virtual protected] void QAbstractScrollArea::dragEnterEvent(QDragEnterEvent *event)

Reimplements: QWidget::dragEnterEvent(QDragEnterEvent *event).

This event handler can be reimplemented in a subclass to receive drag enter events (passed in event), for the viewport() widget.

See also QWidget::dragEnterEvent().

Upstream PySide2 reference signatures (binding differences may apply):

dragEnterEvent(self, arg__1: PySide2.QtGui.QDragEnterEvent) -> None

Source: https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#dragEnterEvent

dragLeaveEvent

dragLeaveEvent(arg__1: Any) -> None

X.dragLeaveEvent(arg__1)

Supplemental documentation: Qt 5 reference:

[override virtual protected] void QAbstractScrollArea::dragLeaveEvent(QDragLeaveEvent *event)

Reimplements: QWidget::dragLeaveEvent(QDragLeaveEvent *event).

This event handler can be reimplemented in a subclass to receive drag leave events (passed in event), for the viewport() widget.

See also QWidget::dragLeaveEvent().

Upstream PySide2 reference signatures (binding differences may apply):

dragLeaveEvent(self, arg__1: PySide2.QtGui.QDragLeaveEvent) -> None

Source: https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#dragLeaveEvent

dragMoveEvent

dragMoveEvent(arg__1: Any) -> None

X.dragMoveEvent(arg__1)

Supplemental documentation: Qt 5 reference:

[override virtual protected] void QAbstractScrollArea::dragMoveEvent(QDragMoveEvent *event)

Reimplements: QWidget::dragMoveEvent(QDragMoveEvent *event).

This event handler can be reimplemented in a subclass to receive drag move events (passed in event), for the viewport() widget.

See also QWidget::dragMoveEvent().

Upstream PySide2 reference signatures (binding differences may apply):

dragMoveEvent(self, arg__1: PySide2.QtGui.QDragMoveEvent) -> None

Source: https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#dragMoveEvent

dropEvent

dropEvent(arg__1: Any) -> None

X.dropEvent(arg__1)

Supplemental documentation: Qt 5 reference:

[override virtual protected] void QAbstractScrollArea::dropEvent(QDropEvent *event)

Reimplements: QWidget::dropEvent(QDropEvent *event).

This event handler can be reimplemented in a subclass to receive drop events (passed in event), for the viewport() widget.

See also QWidget::dropEvent().

Upstream PySide2 reference signatures (binding differences may apply):

dropEvent(self, arg__1: PySide2.QtGui.QDropEvent) -> None

Source: https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#dropEvent

event

event(arg__1: Any) -> bool

X.event(arg__1) -> bool

Supplemental documentation: Qt 5 reference:

[override virtual protected] bool QAbstractScrollArea::event(QEvent *event)

Reimplements: QFrame::event(QEvent *e).

This is the main event handler for the QAbstractScrollArea widget (not the scrolling area viewport()). The specified event is a general event object that may need to be cast to the appropriate class depending on its type.

See also QEvent::type().

Upstream PySide2 reference signatures (binding differences may apply):

event(self, arg__1: PySide2.QtCore.QEvent) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#event

eventFilter

eventFilter(arg__1: Any, arg__2: Any) -> bool

X.eventFilter(arg__1, arg__2) -> bool

Upstream PySide2 reference signatures (binding differences may apply):

eventFilter(self, arg__1: PySide2.QtCore.QObject, arg__2: PySide2.QtCore.QEvent) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#eventFilter

horizontalScrollBar

horizontalScrollBar() -> Any

X.horizontalScrollBar() -> PythonQt.QtGui.QScrollBar

Supplemental documentation: Qt 5 reference:

QScrollBar *QAbstractScrollArea::horizontalScrollBar() const

Returns the horizontal scroll bar.

See also setHorizontalScrollBar(), horizontalScrollBarPolicy, and verticalScrollBar().

Upstream PySide2 reference signatures (binding differences may apply):

horizontalScrollBar(self) -> PySide2.QtWidgets.QScrollBar

Source: https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#horizontalScrollBar

horizontalScrollBarPolicy instance-attribute

horizontalScrollBarPolicy: Any

Qt 5 reference:

horizontalScrollBarPolicy : Qt::ScrollBarPolicy

This property holds the policy for the horizontal scroll bar

The default policy is Qt::ScrollBarAsNeeded.

Access functions:

Qt::ScrollBarPolicy horizontalScrollBarPolicy() const
void setHorizontalScrollBarPolicy(Qt::ScrollBarPolicy)

See also verticalScrollBarPolicy.

Source: https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#horizontalScrollBarPolicy

keyPressEvent

keyPressEvent(arg__1: Any) -> None

X.keyPressEvent(arg__1)

Supplemental documentation: Qt 5 reference:

[override virtual protected] void QAbstractScrollArea::keyPressEvent(QKeyEvent *e)

Reimplements: QWidget::keyPressEvent(QKeyEvent *event).

This function is called with key event e when key presses occur. It handles PageUp, PageDown, Up, Down, Left, and Right, and ignores all other key presses.

Upstream PySide2 reference signatures (binding differences may apply):

keyPressEvent(self, arg__1: PySide2.QtGui.QKeyEvent) -> None

Source: https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#keyPressEvent

maximumViewportSize

maximumViewportSize() -> Any

X.maximumViewportSize() -> PythonQt.QtCore.QSize

Supplemental documentation: Qt 5 reference:

QSize QAbstractScrollArea::maximumViewportSize() const

Returns the size of the viewport as if the scroll bars had no valid scrolling range.

Upstream PySide2 reference signatures (binding differences may apply):

maximumViewportSize(self) -> PySide2.QtCore.QSize

Source: https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#maximumViewportSize

minimumSizeHint instance-attribute

minimumSizeHint: QSize

Qt 5 reference:

[override virtual] QSize QAbstractScrollArea::minimumSizeHint() const

Reimplements an access function for property: QWidget::minimumSizeHint.

Source: https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#minimumSizeHint

mouseDoubleClickEvent

mouseDoubleClickEvent(arg__1: Any) -> None

X.mouseDoubleClickEvent(arg__1)

Supplemental documentation: Qt 5 reference:

[override virtual protected] void QAbstractScrollArea::mouseDoubleClickEvent(QMouseEvent *e)

Reimplements: QWidget::mouseDoubleClickEvent(QMouseEvent *event).

This event handler can be reimplemented in a subclass to receive mouse double click events for the viewport() widget. The event is passed in e.

See also QWidget::mouseDoubleClickEvent().

Upstream PySide2 reference signatures (binding differences may apply):

mouseDoubleClickEvent(self, arg__1: PySide2.QtGui.QMouseEvent) -> None

Source: https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#mouseDoubleClickEvent

mouseMoveEvent

mouseMoveEvent(arg__1: Any) -> None

X.mouseMoveEvent(arg__1)

Supplemental documentation: Qt 5 reference:

[override virtual protected] void QAbstractScrollArea::mouseMoveEvent(QMouseEvent *e)

Reimplements: QWidget::mouseMoveEvent(QMouseEvent *event).

This event handler can be reimplemented in a subclass to receive mouse move events for the viewport() widget. The event is passed in e.

See also QWidget::mouseMoveEvent().

Upstream PySide2 reference signatures (binding differences may apply):

mouseMoveEvent(self, arg__1: PySide2.QtGui.QMouseEvent) -> None

Source: https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#mouseMoveEvent

mousePressEvent

mousePressEvent(arg__1: Any) -> None

X.mousePressEvent(arg__1)

Supplemental documentation: Qt 5 reference:

[override virtual protected] void QAbstractScrollArea::mousePressEvent(QMouseEvent *e)

Reimplements: QWidget::mousePressEvent(QMouseEvent *event).

This event handler can be reimplemented in a subclass to receive mouse press events for the viewport() widget. The event is passed in e.

The default implementation calls QWidget::mousePressEvent() for default popup handling.

See also QWidget::mousePressEvent().

Upstream PySide2 reference signatures (binding differences may apply):

mousePressEvent(self, arg__1: PySide2.QtGui.QMouseEvent) -> None

Source: https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#mousePressEvent

mouseReleaseEvent

mouseReleaseEvent(arg__1: Any) -> None

X.mouseReleaseEvent(arg__1)

Supplemental documentation: Qt 5 reference:

[override virtual protected] void QAbstractScrollArea::mouseReleaseEvent(QMouseEvent *e)

Reimplements: QWidget::mouseReleaseEvent(QMouseEvent *event).

This event handler can be reimplemented in a subclass to receive mouse release events for the viewport() widget. The event is passed in e.

See also QWidget::mouseReleaseEvent().

Upstream PySide2 reference signatures (binding differences may apply):

mouseReleaseEvent(self, arg__1: PySide2.QtGui.QMouseEvent) -> None

Source: https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#mouseReleaseEvent

objectNameChanged

objectNameChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QAbstractScrollArea.objectNameChanged; argument details are not documented.

paintEvent

paintEvent(arg__1: Any) -> None

X.paintEvent(arg__1)

Supplemental documentation: Qt 5 reference:

[override virtual protected] void QAbstractScrollArea::paintEvent(QPaintEvent *event)

Reimplements: QFrame::paintEvent(QPaintEvent *).

This event handler can be reimplemented in a subclass to receive paint events (passed in event), for the viewport() widget.

Note: If you open a painter, make sure to open it on the viewport().

See also QWidget::paintEvent().

Upstream PySide2 reference signatures (binding differences may apply):

paintEvent(self, arg__1: PySide2.QtGui.QPaintEvent) -> None

Source: https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#paintEvent

resizeEvent

resizeEvent(arg__1: Any) -> None

X.resizeEvent(arg__1)

Supplemental documentation: Qt 5 reference:

[override virtual protected] void QAbstractScrollArea::resizeEvent(QResizeEvent *event)

Reimplements: QWidget::resizeEvent(QResizeEvent *event).

This event handler can be reimplemented in a subclass to receive resize events (passed in event), for the viewport() widget.

When resizeEvent() is called, the viewport already has its new geometry: Its new size is accessible through the QResizeEvent::size() function, and the old size through QResizeEvent::oldSize().

See also QWidget::resizeEvent().

Upstream PySide2 reference signatures (binding differences may apply):

resizeEvent(self, arg__1: PySide2.QtGui.QResizeEvent) -> None

Source: https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#resizeEvent

scrollBarWidgets

scrollBarWidgets(alignment: Any) -> tuple

X.scrollBarWidgets(alignment) -> tuple

Supplemental documentation: Qt 5 reference:

QWidgetList QAbstractScrollArea::scrollBarWidgets(Qt::Alignment alignment)

Returns a list of the currently set scroll bar widgets. alignment can be any combination of the four location flags.

This function was introduced in Qt 4.2.

See also addScrollBarWidget().

Upstream PySide2 reference signatures (binding differences may apply):

scrollBarWidgets(self, alignment: PySide2.QtCore.Qt.Alignment) -> typing.List[PySide2.QtWidgets.QWidget]

Source: https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#scrollBarWidgets

scrollContentsBy

scrollContentsBy(dx: int, dy: int) -> None

X.scrollContentsBy(dx, dy)

Supplemental documentation: Qt 5 reference:

[virtual protected] void QAbstractScrollArea::scrollContentsBy(int dx, int dy)

This virtual handler is called when the scroll bars are moved by dx, dy, and consequently the viewport's contents should be scrolled accordingly.

The default implementation simply calls update() on the entire viewport(), subclasses can reimplement this handler for optimization purposes, or - like QScrollArea - to move a contents widget. The parameters dx and dy are there for convenience, so that the class knows how much should be scrolled (useful e.g. when doing pixel-shifts). You may just as well ignore these values and scroll directly to the position the scroll bars indicate.

Calling this function in order to scroll programmatically is an error, use the scroll bars instead (e.g. by calling QScrollBar::setValue() directly).

Upstream PySide2 reference signatures (binding differences may apply):

scrollContentsBy(self, dx: int, dy: int) -> None

Source: https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#scrollContentsBy

setCornerWidget

setCornerWidget(widget: Any) -> None

X.setCornerWidget(widget)

Supplemental documentation: Qt 5 reference:

void QAbstractScrollArea::setCornerWidget(QWidget *widget)

Sets the widget in the corner between the two scroll bars to be widget.

You will probably also want to set at least one of the scroll bar modes to AlwaysOn.

Passing nullptr shows no widget in the corner.

Any previous corner widget is hidden.

You may call setCornerWidget() with the same widget at different times.

All widgets set here will be deleted by the scroll area when it is destroyed unless you separately reparent the widget after setting some other corner widget (or nullptr).

Any newly set widget should have no current parent.

By default, no corner widget is present.

This function was introduced in Qt 4.2.

See also cornerWidget(), horizontalScrollBarPolicy, and horizontalScrollBarPolicy.

Upstream PySide2 reference signatures (binding differences may apply):

setCornerWidget(self, widget: PySide2.QtWidgets.QWidget) -> None

Source: https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#setCornerWidget

setHorizontalScrollBar

setHorizontalScrollBar(scrollbar: Any) -> None

X.setHorizontalScrollBar(scrollbar)

Supplemental documentation: Qt 5 reference:

void QAbstractScrollArea::setHorizontalScrollBar(QScrollBar *scrollBar)

Replaces the existing horizontal scroll bar with scrollBar, and sets all the former scroll bar's slider properties on the new scroll bar. The former scroll bar is then deleted.

QAbstractScrollArea already provides horizontal and vertical scroll bars by default. You can call this function to replace the default horizontal scroll bar with your own custom scroll bar.

This function was introduced in Qt 4.2.

See also horizontalScrollBar() and setVerticalScrollBar().

Upstream PySide2 reference signatures (binding differences may apply):

setHorizontalScrollBar(self, scrollbar: PySide2.QtWidgets.QScrollBar) -> None

Source: https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#setHorizontalScrollBar

setHorizontalScrollBarPolicy

setHorizontalScrollBarPolicy(arg__1: Any) -> None

X.setHorizontalScrollBarPolicy(arg__1)

Upstream PySide2 reference signatures (binding differences may apply):

setHorizontalScrollBarPolicy(self, arg__1: PySide2.QtCore.Qt.ScrollBarPolicy) -> None

Source: https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#setHorizontalScrollBarPolicy

setSizeAdjustPolicy

setSizeAdjustPolicy(policy: Any) -> None

X.setSizeAdjustPolicy(policy)

Upstream PySide2 reference signatures (binding differences may apply):

setSizeAdjustPolicy(self, policy: PySide2.QtWidgets.QAbstractScrollArea.SizeAdjustPolicy) -> None

Source: https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#setSizeAdjustPolicy

setVerticalScrollBar

setVerticalScrollBar(scrollbar: Any) -> None

X.setVerticalScrollBar(scrollbar)

Supplemental documentation: Qt 5 reference:

void QAbstractScrollArea::setVerticalScrollBar(QScrollBar *scrollBar)

Replaces the existing vertical scroll bar with scrollBar, and sets all the former scroll bar's slider properties on the new scroll bar. The former scroll bar is then deleted.

QAbstractScrollArea already provides vertical and horizontal scroll bars by default. You can call this function to replace the default vertical scroll bar with your own custom scroll bar.

This function was introduced in Qt 4.2.

See also verticalScrollBar() and setHorizontalScrollBar().

Upstream PySide2 reference signatures (binding differences may apply):

setVerticalScrollBar(self, scrollbar: PySide2.QtWidgets.QScrollBar) -> None

Source: https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#setVerticalScrollBar

setVerticalScrollBarPolicy

setVerticalScrollBarPolicy(arg__1: Any) -> None

X.setVerticalScrollBarPolicy(arg__1)

Upstream PySide2 reference signatures (binding differences may apply):

setVerticalScrollBarPolicy(self, arg__1: PySide2.QtCore.Qt.ScrollBarPolicy) -> None

Source: https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#setVerticalScrollBarPolicy

setViewport

setViewport(widget: Any) -> None

X.setViewport(widget)

Supplemental documentation: Qt 5 reference:

void QAbstractScrollArea::setViewport(QWidget *widget)

Sets the viewport to be the given widget. The QAbstractScrollArea will take ownership of the given widget.

If widget is nullptr, QAbstractScrollArea will assign a new QWidget instance for the viewport.

This function was introduced in Qt 4.2.

See also viewport().

Upstream PySide2 reference signatures (binding differences may apply):

setViewport(self, widget: PySide2.QtWidgets.QWidget) -> None

Source: https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#setViewport

setViewportMargins

setViewportMargins(left: Any, top: Any, right: Any, bottom: Any) -> None

X.setViewportMargins(left, top, right, bottom)

Supplemental documentation: Qt 5 reference:

[protected] void QAbstractScrollArea::setViewportMargins(int left, int top, int right, int bottom)

Sets the margins around the scrolling area to left, top, right and bottom. This is useful for applications such as spreadsheets with "locked" rows and columns. The marginal space is is left blank; put widgets in the unused area.

Note that this function is frequently called by QTreeView and QTableView, so margins must be implemented by QAbstractScrollArea subclasses. Also, if the subclasses are to be used in item views, they should not call this function.

By default all margins are zero.

See also viewportMargins().

[protected] void QAbstractScrollArea::setViewportMargins(const QMargins \&margins)

Sets margins around the scrolling area. This is useful for applications such as spreadsheets with "locked" rows and columns. The marginal space is is left blank; put widgets in the unused area.

By default all margins are zero.

This function was introduced in Qt 4.6.

See also viewportMargins().

Upstream PySide2 reference signatures (binding differences may apply):

setViewportMargins(self, left: int, top: int, right: int, bottom: int) -> None
setViewportMargins(self, margins: PySide2.QtCore.QMargins) -> None

Source: https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#setViewportMargins

setupViewport

setupViewport(viewport: Any) -> None

X.setupViewport(viewport)

Supplemental documentation: Qt 5 reference:

[virtual] void QAbstractScrollArea::setupViewport(QWidget *viewport)

This slot is called by QAbstractScrollArea after setViewport(viewport) has been called. Reimplement this function in a subclass of QAbstractScrollArea to initialize the new viewport before it is used.

See also setViewport().

Upstream PySide2 reference signatures (binding differences may apply):

setupViewport(self, viewport: PySide2.QtWidgets.QWidget) -> None

Source: https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#setupViewport

sizeAdjustPolicy instance-attribute

sizeAdjustPolicy: Any

Qt 5 reference:

sizeAdjustPolicy : SizeAdjustPolicy

This property holds the policy describing how the size of the scroll area changes when the size of the viewport changes.

The default policy is QAbstractScrollArea::AdjustIgnored. Changing this property might actually resize the scrollarea.

This property was introduced in Qt 5.2.

Access functions:

QAbstractScrollArea::SizeAdjustPolicy sizeAdjustPolicy() const
void setSizeAdjustPolicy(QAbstractScrollArea::SizeAdjustPolicy policy)

Source: https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#sizeAdjustPolicy

sizeHint instance-attribute

sizeHint: QSize

Qt 5 reference:

[override virtual] QSize QAbstractScrollArea::sizeHint() const

Reimplements: QFrame::sizeHint() const.

Returns the sizeHint property of the scroll area. The size is determined by using viewportSizeHint() plus some extra space for scroll bars, if needed.

Source: https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#sizeHint

verticalScrollBar

verticalScrollBar() -> Any

X.verticalScrollBar() -> PythonQt.QtGui.QScrollBar

Supplemental documentation: Qt 5 reference:

QScrollBar *QAbstractScrollArea::verticalScrollBar() const

Returns the vertical scroll bar.

See also setVerticalScrollBar(), verticalScrollBarPolicy, and horizontalScrollBar().

Upstream PySide2 reference signatures (binding differences may apply):

verticalScrollBar(self) -> PySide2.QtWidgets.QScrollBar

Source: https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#verticalScrollBar

verticalScrollBarPolicy instance-attribute

verticalScrollBarPolicy: Any

Qt 5 reference:

verticalScrollBarPolicy : Qt::ScrollBarPolicy

This property holds the policy for the vertical scroll bar

The default policy is Qt::ScrollBarAsNeeded.

Access functions:

Qt::ScrollBarPolicy verticalScrollBarPolicy() const
void setVerticalScrollBarPolicy(Qt::ScrollBarPolicy)

See also horizontalScrollBarPolicy.

Source: https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#verticalScrollBarPolicy

viewport

viewport() -> Any

X.viewport() -> PythonQt.QtGui.QWidget

Supplemental documentation: Qt 5 reference:

QWidget *QAbstractScrollArea::viewport() const

Returns the viewport widget.

Use the QScrollArea::widget() function to retrieve the contents of the viewport widget.

See also setViewport() and QScrollArea::widget().

Upstream PySide2 reference signatures (binding differences may apply):

viewport(self) -> PySide2.QtWidgets.QWidget

Source: https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#viewport

viewportEvent

viewportEvent(arg__1: Any) -> bool

X.viewportEvent(arg__1) -> bool

Supplemental documentation: Qt 5 reference:

[virtual protected] bool QAbstractScrollArea::viewportEvent(QEvent *event)

The main event handler for the scrolling area (the viewport() widget). It handles the event specified, and can be called by subclasses to provide reasonable default behavior.

Returns true to indicate to the event system that the event has been handled, and needs no further processing; otherwise returns false to indicate that the event should be propagated further.

You can reimplement this function in a subclass, but we recommend using one of the specialized event handlers instead.

Specialized handlers for viewport events are: paintEvent(), mousePressEvent(), mouseReleaseEvent(), mouseDoubleClickEvent(), mouseMoveEvent(), wheelEvent(), dragEnterEvent(), dragMoveEvent(), dragLeaveEvent(), dropEvent(), contextMenuEvent(), and resizeEvent().

Upstream PySide2 reference signatures (binding differences may apply):

viewportEvent(self, arg__1: PySide2.QtCore.QEvent) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#viewportEvent