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?

Alex Lockwood
  • 83,063
  • 39
  • 206
  • 250
jay
  • 1,032
  • 2
  • 13
  • 20

2 Answers2

6

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

Alex Lockwood
  • 83,063
  • 39
  • 206
  • 250
sat4ripe
  • 61
  • 1
  • 4
4

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

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

Alex Lockwood
  • 83,063
  • 39
  • 206
  • 250