Icon Class | Extending Qt Creator Manual

Extending Qt Creator Manual | Icon

Extending Qt Creator Manual 4.6.0

# Icon Class

(Utils::Icon)

- List of all members, including inherited members

## Public Types

enum | IconStyleOption { None, Tint, DropShadow, PunchEdges, ToolBarStyle, MenuTintedStyle }
flags | IconStyleOptions

## Public Functions

| Icon()
| Icon(std::initializer_list<IconMaskAndColor> args, IconStyleOptions style = ToolBarStyle)
| Icon(const QString &imageFileName)
| Icon(const Icon &other) = default
QIcon | icon() const
QString | imageFileName() const
QPixmap | pixmap(QIcon::Mode iconMode = QIcon::Normal) const

## Static Public Members

QIcon | combinedIcon(const QList<QIcon> &icons)
QIcon | combinedIcon(const QList<Icon> &icons)
QIcon | modeIcon(const Icon &classic, const Icon &flat, const Icon &flatActive)
QIcon | sideBarIcon(const Icon &classic, const Icon &flat)

## Member Type Documentation

### enum Icon::IconStyleOption
flags Icon::IconStyleOptions

The IconStyleOptions type is a typedef for QFlags<IconStyleOption>. It stores an OR combination of IconStyleOption values.

## Member Function Documentation

### Icon::Icon()

Default constructs an instance of Icon.

### Icon::Icon(std::initializer_list<IconMaskAndColor> args, IconStyleOptions style = ToolBarStyle)

Default constructs an instance of Icon.

### Icon::Icon(const QString &imageFileName)

Default constructs an instance of Icon.

### `[default]` Icon::Icon(const Icon &other)

Copy constructor.

### `[static]` QIcon Icon::combinedIcon(const QList<QIcon> &icons)

### `[static]` QIcon Icon::combinedIcon(const QList<Icon> &icons)

### QIcon Icon::icon() const

### QString Icon::imageFileName() const

### `[static]` QIcon Icon::modeIcon(const Icon &classic, const Icon &flat, const Icon &flatActive)

### QPixmap Icon::pixmap(QIcon::Mode iconMode = QIcon::Normal) const

### `[static]` QIcon Icon::sideBarIcon(const Icon &classic, const Icon &flat)