scroll_bar#

Module Contents#

ArrowButton

Arrow button

ScrollBarGroove

Scroll bar groove

ScrollBarHandle

Scroll bar handle

ScrollBar

Fluent scroll bar

SmoothScrollBar

Smooth scroll bar

SmoothScrollDelegate

Smooth scroll delegate

class ArrowButton(icon: qfluentwidgets.common.icon.FluentIcon, parent=None)#

Bases: PyQt5.QtWidgets.QToolButton

Arrow button

paintEvent(e)#
class ScrollBarGroove(orient: PyQt5.QtCore.Qt.Orientation, parent)#

Bases: PyQt5.QtWidgets.QWidget

Scroll bar groove

fadeIn()#
fadeOut()#
paintEvent(e)#
class ScrollBarHandle(orient: PyQt5.QtCore.Qt.Orientation, parent=None)#

Bases: PyQt5.QtWidgets.QWidget

Scroll bar handle

paintEvent(e)#
class ScrollBar(orient: PyQt5.QtCore.Qt.Orientation, parent: PyQt5.QtWidgets.QAbstractScrollArea)#

Bases: PyQt5.QtWidgets.QWidget

Fluent scroll bar

rangeChanged#
valueChanged#
sliderPressed#
sliderReleased#
sliderMoved#
value()#
val()#
minimum()#
maximum()#
orientation()#
pageStep()#
singleStep()#
isSliderDown()#
setValue(value: int)#
setMinimum(min: int)#
setMaximum(max: int)#
setRange(min: int, max: int)#
setPageStep(step: int)#
setSingleStep(step: int)#
setSliderDown(isDown: bool)#
expand()#

expand scroll bar

collapse()#

collapse scroll bar

enterEvent(e)#
leaveEvent(e)#
eventFilter(obj, e: PyQt5.QtCore.QEvent)#
resizeEvent(e)#
mousePressEvent(e: PyQt5.QtGui.QMouseEvent)#
mouseReleaseEvent(e)#
mouseMoveEvent(e: PyQt5.QtGui.QMouseEvent)#
setForceHidden(isHidden: bool)#

whether to force the scrollbar to be hidden

wheelEvent(e)#
class SmoothScrollBar(orient: PyQt5.QtCore.Qt.Orientation, parent)#

Bases: ScrollBar

Smooth scroll bar

setValue(value, useAni=True)#
scrollValue(value, useAni=True)#

scroll the specified distance

scrollTo(value, useAni=True)#

scroll to the specified position

resetValue(value)#
mousePressEvent(e)#
mouseMoveEvent(e)#
setScrollAnimation(duration, easing=QEasingCurve.OutCubic)#

set scroll animation

Parameters#

duration: int

scroll duration

easing: QEasingCurve

animation type

class SmoothScrollDelegate(parent: PyQt5.QtWidgets.QAbstractScrollArea, useAni=False)#

Bases: PyQt5.QtCore.QObject

Smooth scroll delegate

eventFilter(obj, e: PyQt5.QtCore.QEvent)#
setVerticalScrollBarPolicy(policy)#
setHorizontalScrollBarPolicy(policy)#