SplitterΒΆ
Inherited: Frame
DescriptionΒΆ
Splitter provides a container that divides its area into resizable panes. Users can drag the splitter handles to adjust the size of adjacent child widgets. Supports both horizontal and vertical orientations.
Public MethodsΒΆ
void |
addWidget (Widget * widget) |
int |
count () |
int |
handleWidth () const |
int |
indexOf (Widget * widget) |
void |
insertWidget (int index, Widget * widget) |
int |
orentation () const |
Widget * |
replaceWidget (int index, Widget * widget) |
void |
setHandleWidth (int width) |
void |
setOrientation (int orientation) |
Widget * |
widget (int index) |
Static MethodsΒΆ
None
Methods DescriptionΒΆ
void Splitter::addWidget (Widget * widget)
Adds a widget to the splitter at the end.
int Splitter::count ()
Returns the number of child widgets in the splitter.
int Splitter::handleWidth () const
Returns the width (or thickness) of the splitter handle.
See also setHandleWidth().
int Splitter::indexOf (Widget * widget)
Returns the index of a child widget.
void Splitter::insertWidget (int index, Widget * widget)
Inserts a widget at the specified index.
int Splitter::orentation () const
Returns the current orientation of the splitter.
Replaces a widget at the specified index.
void Splitter::setHandleWidth (int width)
Sets the width (or thickness) of the splitter handle.
See also handleWidth().
void Splitter::setOrientation (int orientation)
Sets the orientation of the splitter.
Widget * Splitter::widget (int index)
Returns the widget at the specified index.