wwWidgets Home · All Classes · Main Classes · Grouped Classes · Functions |
The QwwLed class provides a widget that displays a LED. More...
#include <QwwLed>
This class is not part of the Qt GUI Framework Edition.
Inherits QWidget.
enum | Shape { Circular, RectangularSunken, RectangularRaised, RectangularPlain } |
|
QwwLed ( QWidget * parent = 0 ) | |
QwwLed ( const QColor & col, Shape shap = Circular, QWidget * parent = 0 ) | |
QColor | color () const |
int | frameWidth () const |
bool | isAnimated () const |
bool | isChecked () const |
int | period () const |
Shape | shape () const |
void | blink () |
void | setAnimated ( bool ) |
void | setChecked ( bool v ) |
void | setColor ( const QColor & c ) |
void | setFrameWidth ( int w ) |
void | setPeriod ( int ) |
void | setShape ( Shape s ) |
void | toggle () |
void | clicked () |
void | colorChanged ( const QColor & color ) |
void | toggled ( bool checked ) |
The QwwLed class provides a widget that displays a LED.
Constant | Value | Description |
---|---|---|
QwwLed::Circular | 0 | round LED |
QwwLed::RectangularSunken | 1 | rectangular LED with sunken appearance |
QwwLed::RectangularRaised | 2 | rectangular LED with raised appearence |
QwwLed::RectangularPlain | 3 | rectangular flat LED |
This property holds property keeping information whether the diode is animating.
Access functions:
bool | isAnimated () const |
void | setAnimated ( bool ) |
This property holds property keeping information whether the led is turned on.
Access functions:
bool | isChecked () const |
void | setChecked ( bool v ) |
This property holds this property holds the colour of the diode.
Access functions:
QColor | color () const |
void | setColor ( const QColor & c ) |
This property holds the width of led's frame.
Access functions:
int | frameWidth () const |
void | setFrameWidth ( int w ) |
This property holds blink period of the diode.
Access functions:
int | period () const |
void | setPeriod ( int ) |
This property holds this property holds the shape of the diode.
Access functions:
Shape | shape () const |
void | setShape ( Shape s ) |
Constructs a led widget with a given parent.
Constructs a led widget of colour col and shape shap with a given parent.
Blinks the diode once.
Signal emitted when the diode is clicked
Signal emitted when the color of the diode is changed to color.
Toggles the diode on or off.
Signal emitted when the diode is toggled.
checked carries the information about the current state of the diode.
Copyright © 2007-2010 Witold Wysota | Trademarks | wwWidgets 1.0.0 |