# class KIcon

###

Module | kdeui
Namespace |
Class | KIcon
Inherits | QIcon

A wrapper around QIcon that provides KDE icon features

KIcon is a convenience class for creating a QIcon with an appropriate KIconEngine to perform loading and rendering. KIcons thus adhere to KDE style and effect standards.

See also KIconEngine, KIconLoader, KIconTheme

Author Hamish Rodda <rodda@kde.org>

### methods

- KIcon (iconName, iconLoader, overlays)

  returns ctor
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  iconName | QString |
  iconLoader | KIconLoader |
  overlays | QStringList |

  Constructor which takes a kde style icon name, and optionally a custom icon loader.

  iconName - The name of the kde icon to load

  iconLoader - The icon loader to use in loading this icon, or null to use the default global icon loader.

  overlays - A list of overlays to apply to this icon. They are loaded from the emblems icons and up to four (one per corner) is currently supported

- KIcon (iconName, iconLoader)

  returns ctor
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  iconName | QString |
  iconLoader | KIconLoader |

- KIcon (iconName)

  returns ctor
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  iconName | QString |

- KIcon (copy)

  returns ctor
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  copy | QIcon |

  Copy constructor which takes any QIcon.

  copy - the icon to copy. This should have once been a KIcon, if you want to preserve KDE icon effects.

- KIcon ( )

  returns ctor

  Constructor for a null icon.

- KIcon (a0, a1, a2)

  returns ctor
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | QString |
  a1 | KIconLoader |
  a2 | QStringList |

- KIcon (a0, a1)

  returns ctor
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | QString |
  a1 | KIconLoader |

- KIcon (a0)

  returns ctor
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | QString |

- KIcon (a0)

  returns ctor
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | QIcon |