'PyQt5 - What does "&" symbol mean in the name of menu bar?
When I look for explanation of "QMenuBar" in websites (for example, http://zetcode.com/gui/pyqt4/menusandtoolbars/), the name of a menu always has "&" symbol. What is the meaning of "&" symbol?
Solution 1:[1]
It specifies the hot key or shortcut for the menu option.
In the zetcode example, on Windows the Alt key activates the menu bar, and he uses &File, meaning Alt-F would select the file menu.
The letter that follows the ampersand is the hot key.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
