ActionInfo¶
| Property | Type | Description |
|---|---|---|
| type | string | “separator” – separator “command” – command action item |
| icon | IconInfo | Optional. Action icon. Ignored when type = “separator”. |
| title | string | Optional. Action title. Ignored when type = “separator”. |
| tooltip | string | Optional. Action tooltip. Ignored when type = “separator”. |
| color | string | Optional. Action text color. Ignored when type = “separator”. API 1.32+ |
| invoke | string | API method to invoke when action is requested. Valid only when type = “command”. The value of this field corresponds to one of API method names described in this document. In addition, for Scene Items, this field supports the following macros: “:defaultAction” – Scene / Scene Item default action “:defaultContextMenu” – Scene / Scene Item default context menu “:none” – no action (API 1.32+) Examples: “showModalDialog”, “showCentralWidget”, “addDockingWidget”, “openPopupWindow”, etc. |
| invokeArgs | array | Arguments to the API method described by invoke as described by the API call documentation in this document. Valid only when type = “command”. |
Note: either title or url must be specified if type != “separator”