Skip to content

Commit d82dce9

Browse files
committed
qtvcp -docs: add updates for hal bar
1 parent fc4f41a commit d82dce9

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

docs/src/gui/images/qthalbar.png

4.29 KB
Loading

docs/src/gui/qtvcp-widgets.adoc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ It is based on PyQt's `QGridLayout`.
178178
=== 'HalBar' - HAL Bar Level Indicator
179179

180180
.QtVCP `HalBar`: Panel demonstrating the HAL Bar Level Indicator
181-
image::images/qthalbar.png["QtVCP HalBar: Panel demonstrating the HAL Bar Level Indicator ",scale="25%"]
181+
image::images/qthalbar.png["QtVCP HalBar: Panel showing two options of the HAL Bar Level Indicator ",scale="25%"]
182182

183183
This widget is used to indicate level or value, usually of a HAL s32/float pin. +
184184
You can also disable the HAL pin and use Qt signals or Python commands to change the level. +
@@ -188,6 +188,11 @@ HalBar is a subclass of the Bar widget, so it inherits these properties: +
188188

189189
* 'stepColorList': a list of color strings, the number of colors defines the number of bars.
190190
* 'backgroundColor': a QColor definition of the background color.
191+
* 'indicatorColor': a QColor definition of the optional single color current value bar.
192+
* 'useMultiColorIndicator': bool switch for choosing the option of single or multicolor value bar.
193+
* 'split': the integer percentage split of max value bar versus current value bar (0 to 50%).
194+
* 'setVertical': bool switch for choosing vertical or horizontal indicator.
195+
* 'setInverted': bool switch for choosing inverted direction.
191196
* 'setMaximum': an integer that defines the maximum level of indication.
192197
* 'setMinimum': an integer that defines the lowest level of indication.
193198

0 commit comments

Comments
 (0)