Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Difference between virtualKey and keyCode?

Difference between virtualKey and keyCode?

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 531 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    billconan
    wrote on 18 Nov 2014, 00:39 last edited by
    #1

    I'm working on a program which needs to support both English and Japanese keyboard.

    but no matter which keyboard I'm using, the program functions as if it is always the english keyboard.

    I debugged the code and noticed that in the keypress event, we use nativeVirtualKey() instead of key(). while the key() reflects the keyboard type, the nativeVirtualKey() seems to return the same code for both keyboards.

    I can't tell the difference between nativeVirtualKey and key? I don't know when to use which one? And what is worse, there is a scan code also.

    1 Reply Last reply
    0

    1/1

    18 Nov 2014, 00:39

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved