Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

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

    Chinese
    2
    3
    5066
    Loading More Posts
    • 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
      Saki last edited by

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

      1 Reply Last reply Reply Quote 0
      • Z
        zhxt last edited by

        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 Reply Quote 0
        • S
          Saki last edited by

          [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 Reply Quote 0
          • First post
            Last post