How to convert a Windows native virtual key code to Qt::Key?

送分小仙女□ 提交于 2019-12-07 05:32:06

问题


I am working on a program which communicates with a windows native program, so it needs the actucal native virtual key code. How to convert from a Windows native virtual key code to Qt::Key?


回答1:


If you have access to a QKeyEvent, key() and nativeVirtualKey may help.

From Assistant, qthelp://com.trolltech.qt.472/qdoc/qkeyevent.html#details




回答2:


Look in the file qt\src\gui\kernel\qkeymapper_win.cpp



来源:https://stackoverflow.com/questions/7482213/how-to-convert-a-windows-native-virtual-key-code-to-qtkey

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!