edifice.FixScrollView#
- class edifice.FixScrollView(on_scroll_vertical=None, on_scroll_horizontal=None, on_range_vertical=None, on_range_horizontal=None, scrollbar_policy_horizontal=ScrollBarPolicy.ScrollBarAsNeeded, scrollbar_policy_vertical=ScrollBarPolicy.ScrollBarAsNeeded, **kwargs)[source]#
Bases:
_LinearView[QScrollArea]Scrollable layout widget for child widgets with fixed position.
Underlying Qt Widget QScrollArea
A ScrollView containing a Label.#
Overflows in both the x and y direction will cause a scrollbar to show.
Use the
topandleftstyle properties to set the position of the child widgets.Example FixScrollView with Label at 100px from top and 200px from left#with FixScrollView(): Label( text="Label 100px from top and 200px from left", style={"top": 100, "left": 200}, )
Props
All props from
QtWidgetElementplus:- Parameters:
on_scroll_vertical (
Optional[Callable[[int],None]]) – Event handler for when the vertical scrollbar position changes. See QScrollBar.valueChanged.on_scroll_horizontal (
Optional[Callable[[int],None]]) –Event handler for when the horizontal scrollbar position changes. See QScrollBar.valueChanged.
on_range_vertical (
Optional[Callable[[int,int],None]]) – Event handler for when the vertical scrollbar range changes. See QScrollBar.rangeChanged.on_range_horizontal (
Optional[Callable[[int,int],None]]) –Event handler for when the horizontal scrollbar range changes. See QScrollBar.rangeChanged.
scrollbar_policy_horizontal (
ScrollBarPolicy) – The policy for the horizontal scrollbar. See QAbstractScrollArea.setHorizontalScrollBarPolicy.scrollbar_policy_vertical (
ScrollBarPolicy) – The policy for the vertical scrollbar. See QAbstractScrollArea.setVerticalScrollBarPolicy.
Methods
__init__([on_scroll_vertical, ...])register_ref(reference)Registers provided
Referenceto this Element.set_key(key)Set the key of an
Element.Attributes
childrenThe children of this Element.
propsThe props of this Element.
underlyingThe underlying QWidget, which may not exist if this Element has not rendered.