QT GUI Toggle Switch

From GNU Radio
Jump to: navigation, search

This block creates a modern toggle switch. The variable will take on one value or the other as set in the dialog.

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

Parameters[edit]

(R): Run-time adjustable

Label
the name for the toggle switch.
Label Position
options: [Left, Right]
Type
options: [Float, Integer, String, Boolean]
Default Value
initial value (default: 0)
Initial State
options: [Released, Pressed]
On Value
default: 1
Off Value
default: 0
Message Property Name
default: value
Switch On Background
options: [silver, gray, black, white, red, green, blue, navy, yellow, orange, purple, lime, aqua, teal]
switchOffBackground
see above
Cell Alignment
options: [Center,Left,Right]
Vertical Alignment
options: [Center,Top,Bottom]

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

Example Flowgraph[edit]

This flowgraph can be found at [1]

Test toggleswitch fg.png

Example Output[edit]

This flowgraph can be found at [2]

Test toggleswitch2 out.png

Source Files[edit]

C++ files
TODO
Header files
TODO
Public header files
TODO
Block definition
TODO