Class: QgsScrollArea¶
A QScrollArea subclass with improved scrolling behavior.
QgsScrollArea
should be used instead of QScrollArea widgets.
In most cases the use is identical, however QgsScrollArea
has extra logic to avoid wheel events changing child widget values when
the mouse cursor is temporarily located over a child widget during a
scroll event.
All QGIS code and plugins should use QgsScrollArea
in place
of QScrollArea.
Class Hierarchy¶
Base classes¶
Subclasses¶
|
Methods
Returns |
|
Should be called when a scroll occurs on with the QScrollArea itself or its child |
|
Sets whether the scroll area only applies vertical. |
- class qgis.gui.QgsScrollArea[source]¶
Bases:
QScrollArea
- __init__(parent: QWidget | None = None)
Constructor for QgsScrollArea.
- Parameters:
parent (Optional[QWidget] = None)
- hasScrolled(self) bool [source]¶
Returns
True
if a scroll recently occurred within the QScrollArea or its childviewport()
- Return type:
bool