activateItem (Qt)

activateItem(itemObject)

activateItem(objectOrName, itemText)

These functions activate the specified itemObject, or the item specified by itemText in the popup menu, context menu, or menu bar denoted by objectOrName.

The ampersand characters (&) that indicate keyboard shortcuts should not be included in the item text. If a character in a string is formatted with an underscore (_), meaning that the text inside the program contains an &, write the text without special characters or formatting. For example, for "&Add", write "Add".

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners.
The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.
Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.

Search Results