ScrollBarΒΆ

Inherited: AbstractSlider

DescriptionΒΆ

ScrollBar provides a typical scroll bar with arrow buttons and a draggable knob. Supports both horizontal and vertical orientations.

Public MethodsΒΆ

Widget *

backArrow () const

Widget *

frontArrow () const

int

pageStep () const

void

setBackArrow (Widget * arrow)

void

setFrontArrow (Widget * arrow)

void

setMaximum (int value)

void

setMinimum (int value)

void

setOrientation (int orientation)

void

setPageStep (int page)

void

setSingleStep (int step)

void

setValue (int value)

int

singleStep () const

void

stepBack ()

void

stepFront ()

Static MethodsΒΆ

None

Methods DescriptionΒΆ

Widget * ScrollBar::backArrow () const

Returns the back arrow widget.

See also setBackArrow().


Widget * ScrollBar::frontArrow () const

Returns the front arrow widget.

See also setFrontArrow().


int ScrollBar::pageStep () const

Returns the page step size. The page step determines how much the value changes when clicking

See also setPageStep().


void ScrollBar::setBackArrow (Widget * arrow)

Sets the back arrow widget.

See also backArrow().


void ScrollBar::setFrontArrow (Widget * arrow)

Sets the front arrow widget.

See also frontArrow().


void ScrollBar::setMaximum (int value)

Reimplements: AbstractSlider::setMaximum(int maximum).

Sets the maximum value of the scroll bar.


void ScrollBar::setMinimum (int value)

Reimplements: AbstractSlider::setMinimum(int minimum).

Sets the minimum value of the scroll bar.


void ScrollBar::setOrientation (int orientation)

Reimplements: AbstractSlider::setOrientation(int orientation).

Sets the orientation of the scroll bar.


void ScrollBar::setPageStep (int page)

Sets the page step size. The page step determines how much the value changes when clicking on the track area.

See also pageStep().


void ScrollBar::setSingleStep (int step)

Sets the single step size. The single step determines how much the value changes when clicking the arrow buttons.

See also singleStep().


void ScrollBar::setValue (int value)

Reimplements: AbstractSlider::setValue(int value).

Sets the current value of the scroll bar.


int ScrollBar::singleStep () const

Returns the single step size.

See also setSingleStep().


void ScrollBar::stepBack ()

Moves the value backward by one single step.


void ScrollBar::stepFront ()

Moves the value forward by one single step.