Skip to content

Commit

Permalink
qtvcp -docs: add updates for hal bar
Browse files Browse the repository at this point in the history
  • Loading branch information
c-morley committed Nov 27, 2024
1 parent fc4f41a commit d82dce9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Binary file modified docs/src/gui/images/qthalbar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 6 additions & 1 deletion docs/src/gui/qtvcp-widgets.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ It is based on PyQt's `QGridLayout`.
=== 'HalBar' - HAL Bar Level Indicator

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

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

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

Expand Down

0 comments on commit d82dce9

Please sign in to comment.