& symbol before identifer
-
I can't remember which feature gives & symbol - e.g. "&Open..., &Close...".
Help, please.
-
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 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.
-
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.