HTML_Menu Class

This class provides the API for HTML menus and menubars. This class inherits the HTML_Object Class and in addition, has its own property and methods. See Menu Support for how to add support for custom menus.

HTML_MenuItem HTML_Menu.findItemByIconUrl(iconUrl)

This function returns the first HTML_MenuItem Class whose icon has the given iconUrl or a null value if there isn't one. (The null value can be tested for using the Boolean isNull(object) function.)

HTML_MenuItem HTML_Menu.findItemByText(text)

This function returns the first HTML_MenuItem Class with the given text or a null value if there isn't one. (The null value can be tested for using the Boolean isNull(object) function.)

HTML_MenuItem HTML_Menu.itemAt(index)

This function returns the HTML_MenuItem Class at the given index position or a null value if there isn't one. (The null value can be tested for using the Boolean isNull(object) function.)

int HTML_Menu.numItems

This read-only property holds the count of how many menu items are in the menu (or menubar).

© 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