PythonQt.QtGui.QScrollArea · declarations 001
Back to PythonQt.QtGui.QScrollArea
alignment
instance-attribute
alignment: Any
Qt 5 reference:
alignment : Qt::Alignment
This property holds the alignment of the scroll area's widget
A valid alignment is a combination of the following flags:
Qt::AlignLeftQt::AlignHCenterQt::AlignRightQt::AlignTopQt::AlignVCenterQt::AlignBottom
By default, the widget stays rooted to the top-left corner of the scroll area.
This property was introduced in Qt 4.2.
Access functions:
| Qt::Alignment | alignment() const |
|---|---|
| void | setAlignment(Qt::Alignment) |
Source: https://doc.qt.io/archives/qt-5.15/qscrollarea.html#alignment
customContextMenuRequested
customContextMenuRequested(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QScrollArea.customContextMenuRequested; argument details are not documented.
destroyed
destroyed(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QScrollArea.destroyed; argument details are not documented.
ensureVisible
ensureVisible(x: int, y: int, xmargin: int, ymargin: int) -> None
X.ensureVisible(x, y, xmargin, ymargin)
Supplemental documentation: Qt 5 reference:
void QScrollArea::ensureVisible(int x, int y, int xmargin \= 50, int ymargin \= 50)
Scrolls the contents of the scroll area so that the point (x, y) is visible inside the region of the viewport with margins specified in pixels by xmargin and ymargin. If the specified point cannot be reached, the contents are scrolled to the nearest valid position. The default value for both margins is 50 pixels.
Upstream PySide2 reference signatures (binding differences may apply):
ensureVisible(self, x: int, y: int, xmargin: int=..., ymargin: int=...) -> None
Source: https://doc.qt.io/archives/qt-5.15/qscrollarea.html#ensureVisible
ensureWidgetVisible
ensureWidgetVisible(childWidget: Any, xmargin: int, ymargin: int) -> None
X.ensureWidgetVisible(childWidget, xmargin, ymargin)
Supplemental documentation: Qt 5 reference:
void QScrollArea::ensureWidgetVisible(QWidget *childWidget, int xmargin \= 50, int ymargin \= 50)
Scrolls the contents of the scroll area so that the childWidget of QScrollArea::widget() is visible inside the viewport with margins specified in pixels by xmargin and ymargin. If the specified point cannot be reached, the contents are scrolled to the nearest valid position. The default value for both margins is 50 pixels.
This function was introduced in Qt 4.2.
Upstream PySide2 reference signatures (binding differences may apply):
ensureWidgetVisible(self, childWidget: PySide2.QtWidgets.QWidget, xmargin: int=..., ymargin: int=...) -> None
Source: https://doc.qt.io/archives/qt-5.15/qscrollarea.html#ensureWidgetVisible
event
event(arg__1: Any) -> bool
X.event(arg__1) -> bool
Supplemental documentation: Qt 5 reference:
[override virtual protected] bool QScrollArea::event(QEvent *e)
Reimplements: QAbstractScrollArea::event(QEvent *event).
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/qscrollarea.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 QScrollArea::eventFilter(QObject *o, QEvent *e)
Reimplements: QObject::eventFilter(QObject *watched, QEvent *event).
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/qscrollarea.html#eventFilter
focusNextPrevChild
focusNextPrevChild(next: bool) -> bool
X.focusNextPrevChild(next) -> bool
Supplemental documentation: Qt 5 reference:
[override virtual] bool QScrollArea::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/qscrollarea.html#focusNextPrevChild
objectNameChanged
objectNameChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QScrollArea.objectNameChanged; argument details are not documented.
resizeEvent
resizeEvent(arg__1: Any) -> None
X.resizeEvent(arg__1)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QScrollArea::resizeEvent(QResizeEvent *)
Reimplements: QAbstractScrollArea::resizeEvent(QResizeEvent *event).
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/qscrollarea.html#resizeEvent
scrollContentsBy
scrollContentsBy(dx: int, dy: int) -> None
X.scrollContentsBy(dx, dy)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QScrollArea::scrollContentsBy(int dx, int dy)
Reimplements: QAbstractScrollArea::scrollContentsBy(int dx, int dy).
Upstream PySide2 reference signatures (binding differences may apply):
scrollContentsBy(self, dx: int, dy: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qscrollarea.html#scrollContentsBy
setAlignment
setAlignment(arg__1: Any) -> None
X.setAlignment(arg__1)
Upstream PySide2 reference signatures (binding differences may apply):
setAlignment(self, arg__1: PySide2.QtCore.Qt.Alignment) -> None
Source: https://doc.qt.io/archives/qt-5.15/qscrollarea.html#setAlignment
setWidget
setWidget(widget: Any) -> None
X.setWidget(widget)
Supplemental documentation: Qt 5 reference:
void QScrollArea::setWidget(QWidget *widget)
Sets the scroll area's widget.
The widget becomes a child of the scroll area, and will be destroyed when the scroll area is deleted or when a new widget is set.
The widget's
autoFillBackground
property will be set to true.
If the scroll area is visible when the widget is added, you must show() it explicitly.
Note that You must add the layout of widget before you call this function; if you add it later, the widget will not be visible - regardless of when you show() the scroll area. In this case, you can also not show() the widget later.
See also widget().
Upstream PySide2 reference signatures (binding differences may apply):
setWidget(self, widget: PySide2.QtWidgets.QWidget) -> None
Source: https://doc.qt.io/archives/qt-5.15/qscrollarea.html#setWidget
setWidgetResizable
setWidgetResizable(resizable: bool) -> None
X.setWidgetResizable(resizable)
Upstream PySide2 reference signatures (binding differences may apply):
setWidgetResizable(self, resizable: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qscrollarea.html#setWidgetResizable
sizeHint
instance-attribute
sizeHint: QSize
Qt 5 reference:
[override virtual] QSize QScrollArea::sizeHint() const
Reimplements: QAbstractScrollArea::sizeHint() const.
Source: https://doc.qt.io/archives/qt-5.15/qscrollarea.html#sizeHint
takeWidget
takeWidget() -> Any
X.takeWidget() -> PythonQt.QtGui.QWidget
Supplemental documentation: Qt 5 reference:
QWidget *QScrollArea::takeWidget()
Removes the scroll area's widget, and passes ownership of the widget to the caller.
See also widget().
Upstream PySide2 reference signatures (binding differences may apply):
takeWidget(self) -> PySide2.QtWidgets.QWidget
Source: https://doc.qt.io/archives/qt-5.15/qscrollarea.html#takeWidget
viewportSizeHint
viewportSizeHint() -> Any
X.viewportSizeHint() -> PythonQt.QtCore.QSize
Supplemental documentation: Qt 5 reference:
[override virtual protected] QSize QScrollArea::viewportSizeHint() const
Reimplements: QAbstractScrollArea::viewportSizeHint() const.
Upstream PySide2 reference signatures (binding differences may apply):
viewportSizeHint(self) -> PySide2.QtCore.QSize
Source: https://doc.qt.io/archives/qt-5.15/qscrollarea.html#viewportSizeHint
widget
widget() -> Any
X.widget() -> PythonQt.QtGui.QWidget
Supplemental documentation: Qt 5 reference:
QWidget *QScrollArea::widget() const
Returns the scroll area's widget, or nullptr if there is none.
See also setWidget().
Upstream PySide2 reference signatures (binding differences may apply):
widget(self) -> PySide2.QtWidgets.QWidget
Source: https://doc.qt.io/archives/qt-5.15/qscrollarea.html#widget
widgetResizable
instance-attribute
widgetResizable: bool
Qt 5 reference:
widgetResizable : bool
This property holds whether the scroll area should resize the view widget
If this property is set to false (the default), the scroll area honors the size of its widget. Regardless of this property, you can programmatically resize the widget using widget()->resize(), and the scroll area will automatically adjust itself to the new size.
If this property is set to true, the scroll area will automatically resize the widget in order to avoid scroll bars where they can be avoided, or to take advantage of extra space.
Access functions:
| bool | widgetResizable() const |
|---|---|
| void | setWidgetResizable(bool resizable) |
Source: https://doc.qt.io/archives/qt-5.15/qscrollarea.html#widgetResizable
windowIconChanged
windowIconChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QScrollArea.windowIconChanged; argument details are not documented.
windowIconTextChanged
windowIconTextChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QScrollArea.windowIconTextChanged; argument details are not documented.
windowTitleChanged
windowTitleChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QScrollArea.windowTitleChanged; argument details are not documented.