QSignalMapper* mapper = new QSignalMapper(this);
for(int i=0;i<4;i++)
{
QRadioButton* button = new QRadioButton();
if(i == 0)
button->setChecked(true);
button->setText(items[i+1]);
buttonlayout->addWidget(button);
mapper->setMapping(button,i);
connect(button,SIGNAL(clicked()),mapper,SLOT(map()));
}
connect(mapper,SIGNAL(mapped(int)),this,SLOT(onClick(int)));