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

2

7

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?

Saxena answered 20/9, 2011 at 8:29 Comment(0)
V
4

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

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

Voltmeter answered 20/9, 2011 at 14:56 Comment(0)
L
6

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

Lacombe answered 22/3, 2012 at 15:14 Comment(0)
V
4

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

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

Voltmeter answered 20/9, 2011 at 14:56 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.