MyLCDNumber

A modified QLCDNumber class. More...

Publicly inherits QLCDNumber.

Public Methods

MyLCDNumber( int size, QWidget* parent );

Protected Methods

virtual voidkeyPressEvent( QKeyEvent* e );
virtual voidmousePressEvent( QMouseEvent* e );

Detailed Documentation

A modified QLCDNumber class.

This is a modified QLCDNumber class that passes all mousePressEvents and keyPressEvents to its parent. The position of the mouse event is adjusted to be relative to the parents location.

Public Methods Documentation

MyLCDNumber ( int size, QWidget* parent );

Create a MyLCDNumber.

Protected Methods Documentation

virtual void keyPressEvent ( QKeyEvent* e );

Pass all QKeyEvents to the parent widget.

virtual void mousePressEvent ( QMouseEvent* e );

Pass all QMouseEvents to the parent widget.

The x and y coordinates are adjusted so that they are offsets from the parent widgets upper left corner instead of the childs.


Return to Index.
Automatically generated on Dec 29 18:17