Skip to content

ESplitter Splitter ​

import EUI 1.0

Examples ​

Drag sizing, collapse and deferred resizing ​

QML sourceQML
Preview
Run the code to try the component

Edit text, properties, or events, then select Run.

Code runs in this browser Licenses

Splitter ​

QML sourceQML
Preview
Run the code to try the component

Edit text, properties, or events, then select Run.

Code runs in this browser Licenses

Properties ​

PropertyDescriptionValues and default
activeHandleint

Splitter handle currently being dragged.

Default-1
collapseEventsvar

Pending panel collapse-state events.

Default[]
enabledbool

Allow interaction; false disables the control.

Defaulttrue
finishedIndexint

Splitter index being resized or awaiting its completion event.

Default-1
handleSizeint

Size of the icon, option or interactive part in pixels.

Default6
heightreal

Component size in pixels; may be bound to its parent layout.

DefaultimplicitHeight
initialSizesvar

Panel sizes saved at the beginning of a splitter drag.

Default[]
layoutstring

Layout direction of the splitter panels.

"horizontal" / "vertical"

Default"horizontal"
lazybool

Create content or load data on demand; data controls use load / lazyLoad.

Defaultfalse
orientationenum

Component layout direction.

Qt.Horizontal
Qt.Vertical

Defaultlayout === "vertical" ? Qt.Vertical : Qt.Horizontal
pendingDeltareal

Drag delta awaiting application in lazy resize mode, in pixels.

Default0
resizeIndexint

Splitter index being resized or awaiting its completion event.

Default-1
visiblebool

Whether the component is visible.

Defaulttrue
widthreal

Component size in pixels; may be bound to its parent layout.

DefaultimplicitWidth
sizesvarRead only

Current panel dimensions in the splitter.

DefaultComputed at runtime

Signals ​

SignaturePurpose
resize(int index, var sizes)

Emitted while dragging a divider; index is its index and sizes contains the current panel sizes.

resizeEnd(int index, var sizes)

Emitted when divider dragging ends; index is its index and sizes contains the final panel sizes.

resizeStart(int index, var sizes)

Emitted when divider dragging starts; index is its index and sizes contains the starting panel sizes.

collapsed(int index, string side, var sizes)

Emitted when a panel collapses or restores; index identifies it, side is the collapse direction, and sizes contains the updated sizes.

Methods ​

SignaturePurpose
panelSizes()

Return the current sizes of the splitter panels.

collapsePanel(index, collapsed, side)

Collapse or restore the panel at index; side specifies the collapse direction.

resizePanels(index, delta)

Resize panels adjacent to divider index by delta pixels.

Released under the MIT License. Third-party assets retain their own licenses.