Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Chinese
  4. 为什么用C++写文本的时候,双引号中文本内容需要'&'置前, 例如"&Open"
Qt 6.11 is out! See what's new in the release blog

为什么用C++写文本的时候,双引号中文本内容需要'&'置前, 例如"&Open"

Scheduled Pinned Locked Moved Solved Chinese
2 Posts 2 Posters 882 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.
  • G Offline
    G Offline
    GoBo
    wrote on last edited by
    #1

    3570f551-2f7a-4ab8-84ee-0a2eed852c38-image.png

    不仅仅在 图框配置当中, 我看到很多例程代码中也是加 '&' 符号 ,
    为什么呢?

    JKSHJ 1 Reply Last reply
    0
    • G GoBo

      3570f551-2f7a-4ab8-84ee-0a2eed852c38-image.png

      不仅仅在 图框配置当中, 我看到很多例程代码中也是加 '&' 符号 ,
      为什么呢?

      JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      '&'让您创建一个热键/快捷键 。

      • "&Open" -> Alt+O
      • "&File" -> Alt+F
      • "E&xit" -> Alt+X

      请看 https://doc.qt.io/qt-5/qmenubar.html#details 或 https://doc.qt.io/qt-5/qshortcut.html#details

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      1

      • Login

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