Difference between revisions of "QT GUI Chooser"

From GNU Radio
Jump to: navigation, search
(update to new default field)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:Block Docs]]
+
<!-- QT_GUI_Chooser.mediawiki -->
This block creates a variable with enumerated options. The gui widget is implemented as a combo box or radio button group. Leave the label blank to use the variable id as the label.
+
This block creates a variable with enumerated options. The gui widget is implemented as a combo box or radio button group. When the label is left blank, the option will be used as the label. Set the number of options to "list" to enter a single list of options and labels.
 +
 
 +
See [[GUI Hint]] for how to position the GUI within your window.
  
Choose the number of options available to your chooser. When the label is left blank, the option will be used as the label. Set the number of options to "list" to enter a single list of options and labels. When the labels is an empty list, the options will be used as the label.
+
== Example Flowgraph ==
  
See [[GUI Hint]] for how to position the GUI within your window.
+
This shows the QT GUI Chooser block and how it looks in the output.
  
Example Flowgraph:
+
[[File:FunCube_AM_out.png|800px]]
 +
<br><br>
  
[[File:Chooser-ex.png|700px]]
+
<b>Note:</b> <code>Added field for 3.8.1 in July 2020</code> The "Option 0 (Default)" field has been split into two fields: "Default option" and "Option 0". Whereas the old format forced the default value to be entered as Option 0, the new format allows any of the options to be the default value. Here are what the parameters of the Chooser look like before and after:
  
This is what the parameters of the Chooser looked like:
+
[[File:FunCube_AM_prop.png|387px]]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[File:QT_GUI_CHOOSER_prop.png|303px]]
  
[[File:Chooser-ex2.png|400px]]
+
[[Category:Block Docs]]

Latest revision as of 21:26, 9 July 2020

This block creates a variable with enumerated options. The gui widget is implemented as a combo box or radio button group. When the label is left blank, the option will be used as the label. Set the number of options to "list" to enter a single list of options and labels.

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

Example Flowgraph[edit]

This shows the QT GUI Chooser block and how it looks in the output.

FunCube AM out.png

Note: Added field for 3.8.1 in July 2020 The "Option 0 (Default)" field has been split into two fields: "Default option" and "Option 0". Whereas the old format forced the default value to be entered as Option 0, the new format allows any of the options to be the default value. Here are what the parameters of the Chooser look like before and after:

FunCube AM prop.png      QT GUI CHOOSER prop.png