ESplitter Splitter
Examples
Drag sizing, collapse and deferred resizing
Splitter
Properties
activeHandleintSplitter handle currently being dragged.
-1collapseEventsvarPending panel collapse-state events.
[]enabledboolAllow interaction; false disables the control.
truefinishedIndexintSplitter index being resized or awaiting its completion event.
-1handleSizeintSize of the icon, option or interactive part in pixels.
6heightrealComponent size in pixels; may be bound to its parent layout.
implicitHeightinitialSizesvarPanel sizes saved at the beginning of a splitter drag.
[]layoutstringLayout direction of the splitter panels.
"horizontal" / "vertical"
"horizontal"lazyboolCreate content or load data on demand; data controls use load / lazyLoad.
falseorientationenumComponent layout direction.
Qt.HorizontalQt.Vertical
layout === "vertical" ? Qt.Vertical : Qt.HorizontalpendingDeltarealDrag delta awaiting application in lazy resize mode, in pixels.
0resizeIndexintSplitter index being resized or awaiting its completion event.
-1visibleboolWhether the component is visible.
truewidthrealComponent size in pixels; may be bound to its parent layout.
implicitWidthsizesvarRead onlyCurrent panel dimensions in the splitter.
Computed at runtimeSignals
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
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.