ScrollBar QML Type
A styled scroll bar with Fluent Design. More...
| Import Statement: | import FluentUI 1.0 |
Properties
- active : bool
- horizontal : bool
- interactive : bool
- minimumSize : real
- orientation : enumeration
- policy : enumeration
- position : real
- pressed : bool
- snapMode : enumeration
- vertical : bool
Signals
- moved()
Detailed Description
ScrollBar provides a scroll bar control that can be attached to scrollable views to indicate the current scroll position and allow the user to change it. It supports both horizontal and vertical orientations.
Property Documentation
active : bool
Whether the scroll bar is active (visible and usable). The scroll bar typically becomes active when the user starts scrolling.
horizontal : bool
Whether the scroll bar has horizontal orientation. This is a convenience accessor for the orientation property.
interactive : bool
Whether the scroll bar responds to user interactions such as pressing, dragging, and clicking.
minimumSize : real
The minimum size of the scroll bar handle, expressed as a fraction of the total scroll bar length (0.0 to 1.0).
orientation : enumeration
The orientation of the scroll bar. Can be Qt.Horizontal or Qt.Vertical.
policy : enumeration
The policy controlling when the scroll bar is visible. Values include ScrollBar.AsNeeded, ScrollBar.AlwaysOn, and ScrollBar.AlwaysOff.
position : real
The current position of the scroll bar handle, expressed as a value between 0.0 and 1.0 minus minimumSize.
pressed : bool
Whether the scroll bar handle is currently being pressed by the user.
snapMode : enumeration
Controls the snapping behavior of the scroll bar handle. Values include ScrollBar.NoSnap and ScrollBar.SnapOnRelease.
vertical : bool
Whether the scroll bar has vertical orientation. This is a convenience accessor for the orientation property.
Signal Documentation
moved()
Emitted when the scroll bar position changes as a result of user interaction.
Note: The corresponding handler is onMoved.