QT GUI Toggle Button

This block creates a variable toggle button. Leave the label blank to use the variable id as the label.

A toggle button selects between two values of similar type, but will stay depressed until clicked again. The variable will take on one value or the other depending on whether the button is pressed or released.

This button also will produce a state message matching the set values.

Parameters
(R): Run-time adjustable


 * Id
 * The variable name


 * Label
 * dtype: string
 * default: ""
 * the name for the LED


 * Type
 * dtype: enum
 * default: Integer
 * options: [Float, Integer, String, Boolean]


 * Default Value
 * default: 0


 * Initial State
 * dtype: enum
 * default: Released
 * options: [Released, Pressed]


 * Pressed
 * default: 1


 * Released
 * default: 0


 * Message Property Name
 * dtype: string
 * default: value


 * Released Background
 * dtype: enum
 * default: default
 * options: [default, silver, gray, black, white, red, green, blue, navy, yellow, orange, purple, lime, aqua, teal]


 * Released Font Color
 * dtype: enum
 * default: default
 * options: see above


 * Pressed Background
 * dtype: enum
 * default: default
 * options: see above


 * Pressed Font Color
 * dtype: enum
 * default: default
 * options: see above

See GUI Hint for how to position the GUI within a window.

Example Flowgraph
This flowgraph can be found at



Example Output
The  widget is the Toggle Button.



Source Files

 * C++ files
 * TODO


 * Header files
 * TODO


 * Public header files
 * TODO


 * Block definition
 * TODO