Action.createToolItem

Creates a toolbar item widget that proxies for the given action. Since 2.4

class Action
createToolItem
()

Return Value

Type: ToolItem

a toolbar item connected to the action.