以下成员源于类 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 |
Use one of the other constructors instead.
使用 text () 代替。
使用 QInputEvent::modifiers () 代替。
使用 modifiers () 代替。