Compatibility Members for QKeyEvent

以下成员源于类 QKeyEvent are part of the Qt compatibility layer. We advise against using them in new code.

公共函数

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

成员函数文档编制

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

使用 text () 代替。

Qt::ButtonState QKeyEvent:: state () const

使用 QInputEvent::modifiers () 代替。

Qt::ButtonState QKeyEvent:: stateAfter () const

使用 modifiers () 代替。