wwWidgets Home · All Namespaces · All Classes · Main Classes · Grouped Classes · Modules · Functions

QwwLed Class Reference
[wwWidgets module]

The QwwLed class provides a widget that displays a LED. More...

 #include <QwwLed>

Public Types

Properties

Public Functions

Public Slots

Signals


Detailed Description

The QwwLed class provides a widget that displays a LED.


Member Type Documentation

enum QwwLed::Shape

ConstantValueDescription
QwwLed::Circular0round LED
QwwLed::RectangularSunken1rectangular LED with sunken appearance
QwwLed::RectangularRaised2rectangular LED with raised appearence
QwwLed::RectangularPlain3rectangular flat LED


Property Documentation

animated : bool

This property holds property keeping information whether the diode is animating.

Access functions:

checked : bool

This property holds property keeping information whether the led is turned on.

Access functions:

color : QColor

This property holds this property holds the colour of the diode.

Access functions:

frameWidth : int

This property holds the width of led's frame.

Access functions:

period : int

This property holds blink period of the diode.

Access functions:

shape : Shape

This property holds this property holds the shape of the diode.

Access functions:


Member Function Documentation

QwwLed::QwwLed ( QWidget * parent = 0 )

Constructs a led widget with a given parent.

QwwLed::QwwLed ( const QColor & col, Shape shap = Circular, QWidget * parent = 0 )

Constructs a led widget of colour col and shape shap with a given parent.

void QwwLed::blink ()   [slot]

Blinks the diode once.

void QwwLed::clicked ()   [signal]

Signal emitted when the diode is clicked

void QwwLed::colorChanged ( const QColor & color )   [signal]

Signal emitted when the color of the diode is changed to color.

void QwwLed::toggle ()   [slot]

Toggles the diode on or off.

void QwwLed::toggled ( bool checked )   [signal]

Signal emitted when the diode is toggled.

checked carries the information about the current state of the diode.


Copyright © 2007-2009 Witold Wysota Trademarks
wwWidgets 0.9.6