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

QKeyEvent::QKeyEvent ( Type  type,
int  key,
Qt::KeyboardModifiers  modifiers,
const QString text = QString(),
bool  autorep = false,
ushort  count = 1 
)

Constructs a key event object.

The type parameter must be QEvent::KeyPress, QEvent::KeyRelease, or QEvent::ShortcutOverride.

If key is 0, the event is not a result of a known key; for example, it may be the result of a compose sequence or keyboard macro. The modifiers holds the keyboard modifiers, and the given text is the Unicode text that the key generated. If autorep is true, isAutoRepeat() will be true. count is the number of keys involved in the event.

Definition at line 619 of file qevent.cpp.

    : QInputEvent(type, modifiers), txt(text), k(key), c(count), autor(autorep)
{
}


Generated by  Doxygen 1.6.0   Back to index