How to convert a Windows native virtual key code to Qt::Key?
I am working on a program which communicates with a windows native program, so it n开发者_JS百科eeds the actucal native virtual key code. How to convert from a Windows native virtual key code to Qt::Key?
Look in the file qt\src\gui\kernel\qkeymapper_win.cpp
If you have access to a QKeyEvent
, key()
and nativeVirtualKey
may help.
From Assistant, qthelp://com.trolltech.qt.472/qdoc/qkeyevent.html#details
精彩评论