Logo Search packages:      
Sourcecode: qt4-x11 version File versions

void QWidget::keyReleaseEvent ( QKeyEvent event  )  [protected, virtual, inherited]

This event handler, for event event, can be reimplemented in a subclass to receive key release events for the widget.

A widget must accept focus initially and have focus in order to receive a key release event.

If you reimplement this handler, it is very important that you ignore() the release if you do not understand it, so that the widget's parent can interpret it.

The default implementation ignores the event.

See also:
keyPressEvent(), QKeyEvent::ignore(), setFocusPolicy(), focusInEvent(), focusOutEvent(), event(), QKeyEvent

Reimplemented in QGraphicsView, QAbstractButton, QAbstractSpinBox, QComboBox, QTextEdit, and Q3Header.

Definition at line 6312 of file qwidget.cpp.

Referenced by QWidget::event(), Q3ComboBox::eventFilter(), QCalendarWidget::keyPressEvent(), and QGraphicsView::keyReleaseEvent().

{
    event->ignore();
}


Generated by  Doxygen 1.6.0   Back to index