QgsScrollArea class
A QScrollArea subclass with improved scrolling behavior.
Contents
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.
Derived classes
- class QgsVScrollArea
- QgsVScrollArea is a QScrollArea subclass which only displays a vertical scrollbar and fits the width to the contents.
Constructors, destructors, conversion operators
- QgsScrollArea(QWidget* parent = nullptr) explicit
- Constructor for QgsScrollArea.
Public functions
- auto hasScrolled() const -> bool
- Returns true if a scroll recently occurred within the QScrollArea or its child viewport()
- void scrollOccurred()
- Should be called when a scroll occurs on with the QScrollArea itself or its child viewport().