Skip to main content

itemIcons

Type

property

Summary

The icons for actions when not highlighted.

Syntax

get the itemIcons of <widget>
set the itemIcons of <widget> to <iconNames>

Description

The icons of the header bar actions. These are the icons displayed by each action when not currently highlighted.

Each icon name must be one of the predefined graphics provided by the "IconSVG" library. You can get a list of available predefined path names by running put iconNames() in the Message Box.

If you set the itemIcons to a string that has more items than the current number of actions, the header bar will automatically create a new header action with a default label and name.

However, setting the itemIcons to a string that has fewer items than the current number of actions doesn't remove an action; it just resets any further actions to the default icon.

property: itemArray, hilitedItemIcons