Compatibility Members for QKeyEvent

The following members of class QKeyEventare part of the Qt compatibility layer. We advise against using them in new code.

Public Functions

QKeyEvent(Type type, int key, int ascii, int modifiers, const QString & text = QString(), bool autorep = false, ushort count = 1)
int ascii() const
Qt::ButtonState state() const
Qt::ButtonState stateAfter() const

Member Function Documentation

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

Use one of the other constructors instead.

int QKeyEvent::ascii() const

Use text() instead.

Qt::ButtonState QKeyEvent::state() const

Use QInputEvent::modifiers() instead.

Qt::ButtonState QKeyEvent::stateAfter() const

Use modifiers() instead.

© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.