cut 3.3.0
Loading...
Searching...
No Matches
QeLed Class Reference

LED widget. More...

#include <CutWidgets.h>

Signals

void colorOnChanged (QColor newColorOn)
 Communicates a change in on color.
 
void colorOffChanged (QColor newColorOff)
 Communicates a change in off color.
 
void toggled (bool newValue)
 If the lit value changes, the signal send.
 
void negated (bool newValue)
 If the negate value changes, the signal send.
 

Properties

QColor colorOn
 Color to be used when the LED is lit, or turned on.
 
QColor colorOff
 Color to be used when the LED is turned off.
 
bool lit
 Indicates if the led is to be on or not.
 
bool negate
 Configures the widget to negate the lit value.
 

Detailed Description

LED widget.

A LED representation, with two states. The colors for both on and off states can be changed. When the on color is specified, the off color is automatically calculated as a darker shade of the on color

Negate allows to switch state, in case the input signal represents the opposite.

Any color can be used. A base image is used to represent the LED, and the widget replaces the color of the image by the ones indicated in the widgets properties.

A detailed description of RefClass.

Property Documentation

◆ colorOff

QColor QeLed::colorOff
readwrite

Color to be used when the LED is turned off.

If no color is manually set, the widget will calculate a darker version of the colorOn.

Accessors:
colorOff(), setColorOff(QColor)

◆ colorOn

QColor QeLed::colorOn
readwrite

Color to be used when the LED is lit, or turned on.

If no color is manually set, the widget will default to red.

Accessors:
colorOn(), setColorOn(QColor)

◆ lit

bool QeLed::lit
readwrite

Indicates if the led is to be on or not.

Accessors:
isLit(), setLit(bool)

◆ negate

bool QeLed::negate
readwrite

Configures the widget to negate the lit value.

Accessors:
isNegated(), setNegate(bool)

The documentation for this class was generated from the following files: