Qt键值对照表

枚举值键值备注
Key_Escape0x01000000Esc键(左上角)
Key_Tab0x01000001Tab键(制表键)
Key_Backtab0x01000002Shift+Tab
Key_BackTabKey_Backtab与Key_Backtab键值相同,但在Qt3版本使用
Key_Backspace0x01000003退格(回格)
Key_BackSpaceKey_Backspace与Key_Backspace键值相同,但在Qt3版本使用
Key_Return0x01000004字母键盘回车
Key_Enter0x01000005数字键盘回车
Key_Insert0x01000006插入
Key_Delete0x01000007删除
Key_Pause0x01000008暂停中断
Key_Print0x01000009打印
Key_SysReq0x0100000a系统请求键
Key_Clear0x0100000b清除
Key_Home0x01000010光标移动到起始值
Key_End0x01000011结束
Key_Left0x01000012左键
Key_Up0x01000013上键
Key_Right0x01000014右键
Key_Down0x01000015下键
Key_PageUp0x01000016上页
Key_PriorKey_PageUp与Key_PageUp键值相同,但在Qt3版本使用
Key_PageDown0x01000017下页
Key_NextKey_PageDown与Key_PageDown键值相同,但在Qt3版本使用
Key_Shift0x01000020上档(调节器),通常用于组合按键使用
Key_Control0x01000021控制键,通常用于组合按键使用
Key_Meta0x01000022变换按键,现代计算机键盘一般无此键,此键通常用Alt键或者Windows键仿真
Key_Alt0x01000023替换键,通常用于组合按键使用
Key_CapsLock0x01000024大写锁定
Key_NumLock0x01000025数码锁定
Key_ScrollLock0x01000026滚动锁定
Key_F10x01000030功能键F1
Key_F20x01000031功能键F2
Key_F30x01000032功能键F3
Key_F40x01000033功能键F4
Key_F50x01000034功能键F5
Key_F60x01000035功能键F6
Key_F70x01000036功能键F7
Key_F80x01000037功能键F8
Key_F90x01000038功能键F9
Key_F100x01000039功能键F10
Key_F110x0100003a功能键F11
Key_F120x0100003b功能键F12
Key_F130x0100003c功能键F13
Key_F140x0100003d功能键F14
Key_F150x0100003e功能键F15
Key_F160x0100003f功能键F16
Key_F170x01000040功能键F17
Key_F180x01000041功能键F18
Key_F190x01000042功能键F19
Key_F200x01000043功能键F20
Key_F210x01000044功能键F21
Key_F220x01000045功能键F22
Key_F230x01000046功能键F23
Key_F240x01000047功能键F24
Key_F250x01000048功能键F25(X11系统独有)
Key_F260x01000049功能键F26(X11系统独有)
Key_F270x0100004a功能键F27(X11系统独有)
Key_F280x0100004b功能键F28(X11系统独有)
Key_F290x0100004c功能键F29(X11系统独有)
Key_F300x0100004d功能键F30(X11系统独有)
Key_F310x0100004e功能键F31(X11系统独有)
Key_F320x0100004f功能键F32(X11系统独有)
Key_F330x01000050功能键F33(X11系统独有)
Key_F340x01000051功能键F34(X11系统独有)
Key_F350x01000052功能键F35(X11系统独有)
Key_Super_L0x01000053左超级按键(Window系统下左边键盘徽标)
Key_Super_R0x01000054右超级按键(Window系统下右边键盘徽标)
Key_Menu0x01000055菜单
Key_Hyper_L0x01000056左Hyper按键
Key_Hyper_R0x01000057右Hyper按键
Key_Help0x01000058帮助
Key_Direction_L0x01000059左方向按键
Key_Direction_R0x01000060右方向按键
Key_Space0x20空格键(7位可打印ASCII)
Key_AnyKey_Space与Key_Space键值相同,但在Qt3版本使用
Key_Exclam0x21!
Key_QuoteDbl0x22\
Key_NumberSign0x23#
Key_Dollar0x24$
Key_Percent0x25%
Key_Ampersand0x26&
Key_Apostrophe0x27
Key_ParenLeft0x28(
Key_ParenRight0x29)
Key_Asterisk0x2a*
Key_Plus0x2b+
Key_Comma0x2c,
Key_Minus0x2d
Key_Period0x2e.
Key_Slash0x2f/
Key_00x300
Key_10x311
Key_20x322
Key_30x333
Key_40x344
Key_50x355
Key_60x366
Key_70x377
Key_80x388
Key_90x399
Key_Colon0x3a:
Key_Semicolon0x3b;
Key_Less0x3c<
Key_Equal0x3d=
Key_Greater0x3e>
Key_Question0x3f?
Key_At0x40@
Key_A0x41A
Key_B0x42B
Key_C0x43C
Key_D0x44D
Key_E0x45E
Key_F0x46F
Key_G0x47G
Key_H0x48H
Key_I0x49I
Key_J0x4aJ
Key_K0x4bK
Key_L0x4cL
Key_M0x4dM
Key_N0x4eN
Key_O0x4fO
Key_P0x50P
Key_Q0x51Q
Key_R0x52R
Key_S0x53S
Key_T0x54T
Key_U0x55U
Key_V0x56V
Key_W0x57W
Key_X0x58X
Key_Y0x59Y
Key_Z0x5aZ
Key_BracketLeft0x5b[
Key_Backslash0x5c\
Key_BracketRight0x5d]
Key_AsciiCircum0x5e^
Key_Underscore0x5f_
Key_QuoteLeft0x60`
Key_BraceLeft0x7b{
Key_Bar0x7c\
Key_BraceRight0x7d}
Key_AsciiTilde0x7e~
Key_nobreakspace0x0a0不间断空格
Key_exclamdown0x0a1
Key_cent0x0a2
Key_sterling0x0a3英国货币;标准纯银;英镑
Key_currency0x0a4货币
Key_yen0x0a5日元
Key_brokenbar0x0a6间断条(仅供参考)
Key_section0x0a7分区(仅供参考)
Key_diaeresis0x0a8分音符(仅供参考)
Key_copyright0x0a9版权(仅供参考)
Key_ordfeminine0x0aa女性(仅供参考)
Key_guillemotleft0x0ab左引号
Key_notsign0x0ac告示牌(仅供参考)
Key_hyphen0x0ad连字号(仅供参考)
Key_registered0x0ae注册(仅供参考)
Key_macron0x0af长音符号(加于元音上)(仅供参考)
Key_degree0x0b0度数(仅供参考)
Key_plusminus0x0b1加减符(仅供参考)
Key_twosuperior0x0b2两个优势(仅供参考)
Key_threesuperior0x0b3三个优势(仅供参考)
Key_acute0x0b4加剧(仅供参考)
Key_mu0x0b5希腊字母第12字(仅供参考)
Key_paragraph0x0b6段落;分段符号(仅供参考)
Key_periodcentered0x0b7有圆心的句号”.”(仅供参考)
Key_cedilla0x0b8变音符号(仅供参考)
Key_onesuperior0x0b9一个优势(仅供参考)
Key_masculine0x0ba男性(仅供参考)
Key_guillemotright0x0bb直角引号(仅供参考)
Key_onequarter0x0bc四分之一(仅供参考)
Key_onehalf0x0bd二分之一(仅供参考)
Key_threequarters0x0be四分之三(仅供参考)
Key_questiondown0x0bf下一个问题(仅供参考)
Key_Agrave0x0c0
Key_Aacute0x0c1
Key_Acircumflex0x0c2
Key_Atilde0x0c3
Key_Adiaeresis0x0c4
Key_Aring0x0c5
Key_AE0x0c6
Key_Ccedilla0x0c7
Key_Egrave0x0c8
Key_Eacute0x0c9
Key_Ecircumflex0x0ca
Key_Ediaeresis0x0cb
Key_Igrave0x0cc
Key_Iacute0x0cd
Key_Icircumflex0x0ce
Key_Idiaeresis0x0cf
Key_ETH0x0d0
Key_Ntilde0x0d1
Key_Ograve0x0d2
Key_Oacute0x0d3
Key_Ocircumflex0x0d4
Key_Otilde0x0d5
Key_Odiaeresis0x0d6
Key_multiply0x0d7
Key_Ooblique0x0d8
Key_Ugrave0x0d9
Key_Uacute0x0da
Key_Ucircumflex0x0db
Key_Udiaeresis0x0dc
Key_Yacute0x0dd
Key_THORN0x0de
Key_ssharp0x0df
Key_agraveKey_Agrave
Key_aacuteKey_Aacute
Key_acircumflexKey_Acircumflex
Key_atildeKey_Atilde
Key_adiaeresisKey_Adiaeresis
Key_aringKey_Aring
Key_aeKey_AE
Key_ccedillaKey_Ccedilla
Key_egraveKey_Egrave
Key_eacuteKey_Eacute
Key_ecircumflexKey_Ecircumflex
Key_ediaeresisKey_Ediaeresis
Key_igraveKey_Igrave
Key_iacuteKey_Iacute
Key_icircumflexKey_Icircumflex
Key_idiaeresisKey_Idiaeresis
Key_ethKey_ETH
Key_ntildeKey_Ntilde
Key_ograveKey_Ograve
Key_oacuteKey_Oacute
Key_ocircumflexKey_Ocircumflex
Key_otildeKey_Otilde
Key_odiaeresisKey_Odiaeresis
Key_division0x0f7
Key_oslashKey_Ooblique
Key_ugraveKey_Ugrave
Key_uacuteKey_Uacute
Key_ucircumflexKey_Ucircumflex
Key_udiaeresisKey_Udiaeresis
Key_yacuteKey_Yacute
Key_thornKey_THORN
Key_ydiaeresis0x0ff
// International input method support (X keycode – 0xEE00, the definition follows Qt/Embedded 2.3.7) Only interesting if you are writing your own input method. International & multi-key character composition
Key_AltGr0x01001103
Key_Multi_key0x01001120Multi-key character compose
Key_Codeinput0x01001137
Key_SingleCandidate0x0100113c
Key_MultipleCandidate0x0100113d
Key_PreviousCandidate0x0100113e
// Misc Functions
Key_Mode_switch0x0100117eCharacter set switch
// Key_script_switch = 0x0100117e, // Alias for mode_switch
// Japanese keyboard support
Key_Kanji0x01001121Kanji, Kanji convert
Key_Muhenkan0x01001122Cancel Conversion
// Key_Henkan_Mode = 0x01001123, // Start/Stop Conversion
Key_Henkan0x01001123Alias for Henkan_Mode
Key_Romaji0x01001124to Romaji
Key_Hiragana0x01001125to Hiragana
Key_Katakana0x01001126to Katakana
Key_Hiragana_Katakana0x01001127Hiragana/Katakana toggle
Key_Zenkaku0x01001128to Zenkaku
Key_Hankaku0x01001129to Hankaku
Key_Zenkaku_Hankaku0x0100112aZenkaku/Hankaku toggle
Key_Touroku0x0100112bAdd to Dictionary
Key_Massyo0x0100112cDelete from Dictionary
Key_Kana_Lock0x0100112dKana Lock
Key_Kana_Shift0x0100112eKana Shift
Key_Eisu_Shift0x0100112fAlphanumeric Shift
Key_Eisu_toggle0x01001130Alphanumeric toggle
//Key_Kanji_Bangou = 0x01001137, // Codeinput
//Key_Zen_Koho = 0x0100113d, // Multiple/All Candidate(s)
//Key_Mae_Koho = 0x0100113e, // Previous Candidate
// Korean keyboard support
// In fact, many Korean users need only 2 keys, Key_Hangul and
// Key_Hangul_Hanja. But rest of the keys are good for future.
Key_Hangul0x01001131Hangul start/stop(toggle)
Key_Hangul_Start0x01001132Hangul start
Key_Hangul_End0x01001133Hangul end, English start
Key_Hangul_Hanja0x01001134Start Hangul->Hanja Conversion
Key_Hangul_Jamo0x01001135Hangul Jamo mode
Key_Hangul_Romaja0x01001136Hangul Romaja mode
//Key_Hangul_Codeinput0x01001137, // Hangul code input mode
Key_Hangul_Jeonja0x01001138Jeonja mode
Key_Hangul_Banja0x01001139Banja mode
Key_Hangul_PreHanja0x0100113aPre Hanja conversion
Key_Hangul_PostHanja0x0100113bPost Hanja conversion
//Key_Hangul_SingleCandidate = 0x0100113c, // Single candidate
//Key_Hangul_MultipleCandidate = 0x0100113d, // Multiple candidate
//Key_Hangul_PreviousCandidate = 0x0100113e, // Previous candidate
Key_Hangul_Special0x0100113fSpecial symbols
//Key_Hangul_switch = 0x0100117e, // Alias for mode_switch
// dead keys (X keycode – 0xED00 to avoid the conflict)
Key_Dead_Grave0x01001250
Key_Dead_Acute0x01001251
Key_Dead_Circumflex0x01001252
Key_Dead_Tilde0x01001253
Key_Dead_Macron0x01001254
Key_Dead_Breve0x01001255
Key_Dead_Abovedot0x01001256
Key_Dead_Diaeresis0x01001257
Key_Dead_Abovering0x01001258
Key_Dead_Doubleacute0x01001259
Key_Dead_Caron0x0100125a
Key_Dead_Cedilla0x0100125b
Key_Dead_Ogonek0x0100125c
Key_Dead_Iota0x0100125d
Key_Dead_Voiced_Sound0x0100125e
Key_Dead_Semivoiced_Sound0x0100125f
Key_Dead_Belowdot0x01001260
Key_Dead_Hook0x01001261
Key_Dead_Horn0x01001262
// multimedia/internet keys – ignored by default – see QKeyEvent c’tor
Key_Back0x01000061
Key_Forward0x01000062
Key_Stop0x01000063
Key_Refresh0x01000064
Key_VolumeDown0x01000070
Key_VolumeMute0x01000071
Key_VolumeUp0x01000072
Key_BassBoost0x01000073
Key_BassUp0x01000074
Key_BassDown0x01000075
Key_TrebleUp0x01000076
Key_TrebleDown0x01000077
Key_MediaPlay0x01000080
Key_MediaStop0x01000081
Key_MediaPrevious0x01000082
Key_MediaPrevKey_MediaPrevious
Key_MediaNext0x01000083
Key_MediaRecord0x01000084
Key_MediaPause0x1000085
Key_MediaTogglePlayPause0x1000086
Key_HomePage0x01000090
Key_Favorites0x01000091
Key_Search0x01000092
Key_Standby0x01000093
Key_OpenUrl0x01000094
Key_LaunchMail0x010000a0
Key_LaunchMedia0x010000a1
Key_Launch00x010000a2
Key_Launch10x010000a3
Key_Launch20x010000a4
Key_Launch30x010000a5
Key_Launch40x010000a6
Key_Launch50x010000a7
Key_Launch60x010000a8
Key_Launch70x010000a9
Key_Launch80x010000aa
Key_Launch90x010000ab
Key_LaunchA0x010000ac
Key_LaunchB0x010000ad
Key_LaunchC0x010000ae
Key_LaunchD0x010000af
Key_LaunchE0x010000b0
Key_LaunchF0x010000b1
Key_MonBrightnessUp0x010000b2
Key_MonBrightnessDown0x010000b3
Key_KeyboardLightOnOff0x010000b4
Key_KeyboardBrightnessUp0x010000b5
Key_KeyboardBrightnessDown0x010000b6
Key_PowerOff0x010000b7
Key_WakeUp0x010000b8
Key_Eject0x010000b9
Key_ScreenSaver0x010000ba
Key_WWW0x010000bb
Key_Memo0x010000bc
Key_LightBulb0x010000bd
Key_Shop0x010000be
Key_History0x010000bf
Key_AddFavorite0x010000c0
Key_HotLinks0x010000c1
Key_BrightnessAdjust0x010000c2
Key_Finance0x010000c3
Key_Community0x010000c4
Key_AudioRewind0x010000c5
Key_BackForward0x010000c6
Key_ApplicationLeft0x010000c7
Key_ApplicationRight0x010000c8
Key_Book0x010000c9
Key_CD0x010000ca
Key_Calculator0x010000cb
Key_ToDoList0x010000cc
Key_ClearGrab0x010000cd
Key_Close0x010000ce
Key_Copy0x010000cf
Key_Cut0x010000d0
Key_Display0x010000d1
Key_DOS0x010000d2
Key_Documents0x010000d3
Key_Excel0x010000d4
Key_Explorer0x010000d5
Key_Game0x010000d6
Key_Go0x010000d7
Key_iTouch0x010000d8
Key_LogOff0x010000d9
Key_Market0x010000da
Key_Meeting0x010000db
Key_MenuKB0x010000dc
Key_MenuPB0x010000dd
Key_MySites0x010000de
Key_News0x010000df
Key_OfficeHome0x010000e0
Key_Option0x010000e1
Key_Paste0x010000e2
Key_Phone0x010000e3
Key_Calendar0x010000e4
Key_Reply0x010000e5
Key_Reload0x010000e6
Key_RotateWindows0x010000e7
Key_RotationPB0x010000e8
Key_RotationKB0x010000e9
Key_Save0x010000ea
Key_Send0x010000eb
Key_Spell0x010000ec
Key_SplitScreen0x010000ed
Key_Support0x010000ee
Key_TaskPane0x010000ef
Key_Terminal0x010000f0
Key_Tools0x010000f1
Key_Travel0x010000f2
Key_Video0x010000f3
Key_Word0x010000f4
Key_Xfer0x010000f5
Key_ZoomIn0x010000f6
Key_ZoomOut0x010000f7
Key_Away0x010000f8
Key_Messenger0x010000f9
Key_WebCam0x010000fa
Key_MailForward0x010000fb
Key_Pictures0x010000fc
Key_Music0x010000fd
Key_Battery0x010000fe
Key_Bluetooth0x010000ff
Key_WLAN0x01000100
Key_UWB0x01000101
Key_AudioForward0x01000102
Key_AudioRepeat0x01000103
Key_AudioRandomPlay0x01000104
Key_Subtitle0x01000105
Key_AudioCycleTrack0x01000106
Key_Time0x01000107
Key_Hibernate0x01000108
Key_View0x01000109
Key_TopMenu0x0100010a
Key_PowerDown0x0100010b
Key_Suspend0x0100010c
Key_ContrastAdjust0x0100010d
Key_LaunchG0x0100010e
Key_LaunchH0x0100010f
Key_MediaLast0x0100ffff
// Keypad navigation keys
Key_Select0x01010000
Key_Yes0x01010001
Key_No0x01010002
// Newer misc keys
Key_Cancel0x01020001
Key_Printer0x01020002
Key_Execute0x01020003
Key_Sleep0x01020004
Key_Play0x01020005Not the same as Key_MediaPlay
Key_Zoom0x01020006
// Key_Jisho = 0x01020007, // IME: Dictionary key
// Key_Oyayubi_Left = 0x01020008, // IME: Left Oyayubi key
// Key_Oyayubi_Right = 0x01020009, // IME: Right Oyayubi key
// Device keys
Key_Context10x01100000
Key_Context20x01100001
Key_Context30x01100002
Key_Context40x01100003
Key_Call0x01100004set absolute state to in a call (do not toggle state)
Key_Hangup0x01100005set absolute state to hang up (do not toggle state)
Key_Flip0x01100006
Key_ToggleCallHangup0x01100007a toggle key for answering, or hanging up, based on current call state
Key_VoiceDial0x01100008
Key_LastNumberRedial0x01100009
Key_Camera0x01100020
Key_CameraFocus0x01100021
Key_unknown0x01ffffff

Qt键盘的一个小知识

Qt::Key_ReturnQt::Key_Enter比较

相同之处

  • Qt::Key_ReturnQt::Key_Enter都是回车键.

不同之处

  • Qt::Key_Return是字母键盘的回车键;
  • Qt::Key_Enter则为数字键盘的回车键.

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注