Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Chinese
  4. 【SOLVED】在QKeySequence中,Ctrl+·键应当如何设置?
Forum Update on Tuesday, May 27th 2025

【SOLVED】在QKeySequence中,Ctrl+·键应当如何设置?

Scheduled Pinned Locked Moved Chinese
3 Posts 2 Posters 5.4k Views 1 Watching
  • 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.
  • S Offline
    S Offline
    Saki
    wrote on 2 Jul 2013, 06:17 last edited by
    #1

    在QKeySequence中,我想设置一个Button的快捷键是:Ctrl+·(主键盘数字1左侧的那个键),应该怎么写?
    应该是Qt::CTRL+Qt::Key_?????????,但是不清楚后面这个叫什么 啊。求教!
    谢谢各位!

    1 Reply Last reply
    0
    • Z Offline
      Z Offline
      zhxt
      wrote on 2 Jul 2013, 12:55 last edited by
      #2

      A. 查下对应的名字,然后去文档中或代码里搜。

      ~ Tilde
      ` Acute, Back quote, grave, grave accent, left quote, open quote, or a pus

      http://www.computerhope.com/keys.htm

      @> grep -in "acute" qnamespace.h
      711: Key_acute = 0x0b4,
      724: Key_Aacute = 0x0c1,
      732: Key_Eacute = 0x0c9,
      736: Key_Iacute = 0x0cd,
      742: Key_Oacute = 0x0d3,
      749: Key_Uacute = 0x0da,
      752: Key_Yacute = 0x0dd,
      820: Key_Dead_Acute = 0x01001251,
      828: Key_Dead_Doubleacute = 0x01001259,

      grep -in "quote" qnamespace.h
      623: Key_QuoteDbl = 0x22,
      685: Key_QuoteLeft = 0x60,

      grep -in "grave" qnamespace.h
      723: Key_Agrave = 0x0c0,
      731: Key_Egrave = 0x0c8,
      735: Key_Igrave = 0x0cc,
      741: Key_Ograve = 0x0d2,
      748: Key_Ugrave = 0x0d9,
      819: Key_Dead_Grave = 0x01001250,

      grep -in "tilde" qnamespace.h
      689: Key_AsciiTilde = 0x7e,
      726: Key_Atilde = 0x0c3,
      740: Key_Ntilde = 0x0d1,
      744: Key_Otilde = 0x0d5,
      822: Key_Dead_Tilde = 0x01001253,@

      `QuoteLeft

      ~ AsciiTilde

      update:
      B. 或者先找到keyascii值,再去文档/代码中对照。

      ` ~ 96 -> 0x60

      http://help.adobe.com/en_US/AS2LCR/Flash_10.0/help.html?content=00000520.html

      Qt Developer

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Saki
        wrote on 4 Jul 2013, 10:16 last edited by
        #3

        [quote author="Xingtao Zhang" date="1372769701"]A. 查下对应的名字,然后去文档中或代码里搜。

        ~ Tilde
        ` Acute, Back quote, grave, grave accent, left quote, open quote, or a pus

        http://www.computerhope.com/keys.htm

        @> grep -in "acute" qnamespace.h
        711: Key_acute = 0x0b4,
        724: Key_Aacute = 0x0c1,
        732: Key_Eacute = 0x0c9,
        736: Key_Iacute = 0x0cd,
        742: Key_Oacute = 0x0d3,
        749: Key_Uacute = 0x0da,
        752: Key_Yacute = 0x0dd,
        820: Key_Dead_Acute = 0x01001251,
        828: Key_Dead_Doubleacute = 0x01001259,

        grep -in "quote" qnamespace.h
        623: Key_QuoteDbl = 0x22,
        685: Key_QuoteLeft = 0x60,

        grep -in "grave" qnamespace.h
        723: Key_Agrave = 0x0c0,
        731: Key_Egrave = 0x0c8,
        735: Key_Igrave = 0x0cc,
        741: Key_Ograve = 0x0d2,
        748: Key_Ugrave = 0x0d9,
        819: Key_Dead_Grave = 0x01001250,

        grep -in "tilde" qnamespace.h
        689: Key_AsciiTilde = 0x7e,
        726: Key_Atilde = 0x0c3,
        740: Key_Ntilde = 0x0d1,
        744: Key_Otilde = 0x0d5,
        822: Key_Dead_Tilde = 0x01001253,@

        `QuoteLeft

        ~ AsciiTilde

        update:
        B. 或者先找到keyascii值,再去文档/代码中对照。

        ` ~ 96 -> 0x60

        http://help.adobe.com/en_US/AS2LCR/Flash_10.0/help.html?content=00000520.html[/quote]

        谢谢~问题已解决~

        1 Reply Last reply
        0

        1/3

        2 Jul 2013, 06:17

        • Login

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