开发者

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

开发者 https://www.devze.com 2023-04-05 21:25 出处:网络
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::K

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号