Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在开发一个与 Windows 本机程序通信的程序,因此它需要实际的本机虚拟键代码。如何从 Windows 原生虚拟键代码转换为 Qt::Key?
在文件中查看qt\src\gui\kernel\qkeymapper_win.cpp
qt\src\gui\kernel\qkeymapper_win.cpp
如果您可以访问QKeyEvent,key()并且nativeVirtualKey可能会有所帮助。
QKeyEvent
key()
nativeVirtualKey
来自助手,qthelp://com.trolltech.qt.472/qdoc/qkeyevent.html#details