A modified QLCDNumber class. More...
Publicly inherits QLCDNumber.
MyLCDNumber | ( int size, QWidget* parent ); |
virtual void | keyPressEvent | ( QKeyEvent* e ); |
virtual void | mousePressEvent | ( QMouseEvent* e ); |
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.Create a MyLCDNumber.
Pass all QKeyEvents to the parent widget.
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.