# class KIconButton

###

Module | kio
Namespace |
Class | KIconButton
Inherits | QPushButton

### methods

- KIconButton (parent)

  returns ctor
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  parent | QWidget | 0

  Constructs a KIconButton using the global iconloader.

  parent - The parent widget.

- KIconButton (loader, parent)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  loader | KIconLoader |
  parent | QWidget |

  Constructs a KIconButton using a specific KIconLoader.

  loader - The icon loader to use.

  parent - The parent widget.

- KIconButton (a0)

  returns ctor
  Not implemented

  Argument | Type | Default
  --- | --- | ---
  a0 | KIconButton |

- KIconButton (a0)

  returns ctor
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | QWidget | 0

- buttonIconSize ( )

  returns int
  KDE 4.1.0 and later only

  Returns the Button's Icon-Size @since 4.1

- icon ( )

  returns QString

  Returns the name of the selected icon.

- iconChanged (icon)

  returns Nothing
  SIGNAL ("iconChanged (const QString&)")

  Argument | Type | Default
  --- | --- | ---
  icon | QString |

  Emitted when the icon has changed.

- iconSize ( )

  returns int

  Returns the iconsize set via setIconSize() or 0, if the default iconsize will be used.

- resetIcon ( )

  returns Nothing

  Resets the icon (reverts to an empty button).

- setButtonIconSize (size)

  returns Nothing
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  size | int |

  Sets the size of the icon to be shown on the button

  See also KIconLoader.StdSizes

  See also buttonIconSize @since 4.1

- setIcon (icon)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  icon | QString |

  Sets the button's initial icon.

- setIcon (icon)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  icon | QIcon |

- setIconSize (size)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  size | int |

  Sets the size of the icon to be shown / selected.

  See also KIconLoader.StdSizes

  See also iconSize

- setIconType (group, context, user)

  returns Nothing
  Not implemented

  Argument | Type | Default
  --- | --- | ---
  group | KIconLoader.Group |
  context | KIconLoader.Context |
  user | bool | 0

  Sets the icon group and context. Use KIconLoader.NoGroup if you want to allow icons for any group in the given context.

- setStrictIconSize (b)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  b | bool |

  Sets a strict icon size policy for allowed icons. When true, only icons of the specified group's size in setIconType are allowed, and only icons of that size will be shown in the icon dialog.

- strictIconSize ( )

  returns bool

  Returns true if a strict icon size policy is set.