QT GUI Dial: Difference between revisions

From GNU Radio
Jump to navigation Jump to search
 
Line 4: Line 4:
== Parameters ==
== Parameters ==


(''R''): <span class="plainlinks">[https://wiki.gnuradio.org/index.php/GNURadioCompanion#Variable_Controls ''Run-time adjustable'']</span>
<b>(''R''):</b> <span class="plainlinks">[https://wiki.gnuradio.org/index.php/GNURadioCompanion#Variable_Controls ''Run-time adjustable'']</span>


; Id
; Id
Line 10: Line 10:


; Label
; Label
: dtype: string
: the name for the dial
: the name for the dial


; Type
; Type
: dtype: enum
: Float or Integer
: default: int
: options: [Float, Integer]


; Default Value
; Default Value
Line 31: Line 28:


; Show Value
; Show Value
: dtype: bool
: default: False
: default: False


; Minimum Size
; Minimum Size
: dtype: int
: default: 100
: default: 100


; Message Property Name
; Message Property Name
: dtype: string
: default: 'value'
: default: 'value'


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



Latest revision as of 17:01, 8 November 2020

This block creates a dial control. The dial controls a variable which can be used for other items. Leave the label blank to use the variable id as the label. The block also creates an optional message with the control value that can be used in message-based applications. Note the Message Debug output in the Example Output below.
Added in 3.9

Parameters

(R): Run-time adjustable

Id
The variable name
Label
the name for the dial
Type
Float or Integer
Default Value
default: 0
Minimum
default: 0
Maximum
default: 100
Scale Factor
default: 1
Show Value
default: False
Minimum Size
default: 100
Message Property Name
default: 'value'
Color
options: [default, silver, gray, black, white, red, green, blue, navy, yellow, orange, purple, lime, aqua, teal]

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

Example Flowgraph

This file can be found at [1]

Test dialcontrol fg.png

Example Output

Test dialcontrol out.png

Source Files

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