"tracking"

The attribute "tracking" specifies whether the slider tracking is enabled.

Synopsis

shape.tracking(bool mode);

Parameter

Parameter Description
shape Name of the object
mode

TRUE = enabled

FALSE = disabled

Description

The attribute "tracking" specifies whether the slider tracking is enabled. If tracking is enabled (the default), the slider emits the valueChanged() signal whenever the slider is being dragged. If tracking is disabled, the slider emits the valueChanged() signal when the user releases the mouse button. (in other words the attribute specifies how often the "change" script is called: only when you release the mouse button or when the slider is being dragged.

Example

In the following example the slider tracking is enabled.

main(bool enter)
{
  SLIDER1.tracking(TRUE);
}

Assignment

Slider