Subgroup: other

Class: QgsScrollArea

class qgis.gui.QgsScrollArea(parent: QWidget = None)

Bases: PyQt5.QtWidgets.QScrollArea

Constructor for 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.

actionEvent()
changeEvent()
childEvent()
closeEvent()
connectNotify()
contextMenuEvent()
create()
customEvent()
destroy()
disconnectNotify()
dragEnterEvent()
dragLeaveEvent()
dragMoveEvent()
drawFrame()
dropEvent()
enterEvent()
event()
eventFilter()
focusInEvent()
focusNextChild()
focusOutEvent()
focusPreviousChild()
hasScrolled(self) → bool

Returns true if a scroll recently occurred within the QScrollArea or its child viewport()

hideEvent()
initPainter()
initStyleOption()
inputMethodEvent()
isSignalConnected()
keyPressEvent()
keyReleaseEvent()
leaveEvent()
metric()
mouseDoubleClickEvent()
mouseMoveEvent()
mousePressEvent()
mouseReleaseEvent()
moveEvent()
nativeEvent()
paintEvent()
receivers()
resizeEvent()
scrollContentsBy()
scrollOccurred(self)

Should be called when a scroll occurs on with the QScrollArea itself or its child viewport().

sender()
senderSignalIndex()
setViewportMargins()
sharedPainter()
showEvent()
tabletEvent()
timerEvent()
updateMicroFocus()
viewportEvent()
viewportMargins()
viewportSizeHint()
wheelEvent(self, event: QWheelEvent)