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¶
|
- 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
Trueif a scroll recently occurred within the QScrollArea or its childviewport()- Return type:
bool