You can process a new selection with a signal/slot mechanism. In the
example below the signal checkedChanged() of the
WButtonGroup is passed to an inner function passing a
You can see that there are two ways to get the id assigned to a button,
namely group->id(selection) and group->checkedId().