Qt Forum

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

    Update: Forum Guidelines & Code of Conduct

    & symbol before identifer

    General and Desktop
    3
    4
    2059
    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.
    • T
      tucnak last edited by

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

      Help, please.

      1 Reply Last reply Reply Quote 0
      • L
        lgeyer last edited by

        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 Reply Quote 0
        • T
          tucnak last edited by

          [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 Reply Quote 0
          • A
            andre last edited by

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