# class KButtonGroup

###

Module | kdeui
Namespace |
Class | KButtonGroup
Inherits | QGroupBox

Group box with index of the selected radio button KGroupBox is a simple group box that can keep track of the current selected radio button of the ones added to it.

Use normally as you would with a QGroupBox.

Author Pino Toscano <toscano.pino@tiscali.it>

### methods

- KButtonGroup (parent)

  returns ctor
  KDE 4.1.0 and later only

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

  Construct a new empty KGroupBox.

- KButtonGroup (a0)

  returns ctor
  before KDE 4.1.0 only

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

- changed (id)

  returns Nothing
  SIGNAL ("changed (int)")

  Argument | Type | Default
  --- | --- | ---
  id | int |

  Emitted when anything (a click on a radio button, or calling setSelected()) change the id of the current selected. id is the index of the new selected radio button.

- childEvent (event)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  event | QChildEvent |

  Reimplemented from QGroupBox.

- clicked (id)

  returns Nothing
  SIGNAL ("clicked (int)")

  Argument | Type | Default
  --- | --- | ---
  id | int |

  The radio button with index id was clicked

- pressed (id)

  returns Nothing
  SIGNAL ("pressed (int)")

  Argument | Type | Default
  --- | --- | ---
  id | int |

  The radio button with index id was pressed

- released (id)

  returns Nothing
  SIGNAL ("released (int)")

  Argument | Type | Default
  --- | --- | ---
  id | int |

  The radio button with index id was released

- selected ( )

  returns int

  Return the index of the selected QRadioButton, among the QRadioButton's added to the widget. Returns the index of the selected radio button

- setSelected (id)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  id | int |

  Select the id -th radio button