LightWidget

LED-style indicator light widget with blink capability.

Declared in src/libs/libwidgets/components/LightWidget.hpp
Inherits QWidget
Group widgets

Detailed description

LightWidget displays a colored LED-like indicator that can be turned on/off or blinked for a specified duration.

LightWidget

See also QWidget.

Property documentation

on property

on : bool

This property holds whether the light is on.

The widget always paints the light in a darker version of the light color. When the light is on, it also paints a glow of the light color over it. The default is off. blink() turns the light on and turns it off again after a delay.

The property was named mOn, after the member it reads, until 2026-10-11 (owner ruling); nothing set it by name.

Access functions:

  • bool isLightOn() const
  • void setLightOn(bool o)
In this section