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. & symbol before identifer
Forum Update on Monday, May 27th 2025

& symbol before identifer

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 2.2k 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.
  • T Offline
    T Offline
    tucnak
    wrote on last edited by
    #1

    I can't remember which feature gives & symbol - e.g. "&Open..., &Close...".

    Help, please.

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lgeyer
      wrote on last edited by
      #2

      If we are talking about ampersands in strings it is most probably responsible for creating automatic "shortcuts":http://doc.qt.nokia.com/stable/qshortcut.html#details. If we are talking about variables here the ampersand is used as reference or address-of operator.

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tucnak
        wrote on last edited by
        #3

        [quote author="Lukas Geyer" date="1321103036"]If we are talking about ampersands in strings it is most probably responsible for creating automatic "shortcuts":http://doc.qt.nokia.com/stable/qshortcut.html#details. If we are talking about variables here the ampersand is used as reference or address-of operator.[/quote]

        Thanks. It is that I have been searching.

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andre
          wrote on last edited by
          #4

          To get a literal & symbol in a user-visible string like a label or a menu entry, double the &. A single & is used for automatic shortcut creation.

          1 Reply Last reply
          0

          • Login

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