Qt-UI
Q Checkbox
QVBoxLayout *layout = new QVBoxLayout;
check1 = new QCheckBox(tr("Check 1"));
check2 = new QCheckBox(tr("Check 2"));
connect(check1, SIGNAL(stateChanged(int)), this, SLOT(changed1(int)));
connect(check2, SIGNAL(stateChanged(int)), this, SLOT(changed2(int)));
layout->addWidget(check1);
layout->addWidget(check2);
setLayout(layout);
check1 = new QCheckBox(tr("Check 1"));
check2 = new QCheckBox(tr("Check 2"));
connect(check1, SIGNAL(stateChanged(int)), this, SLOT(changed1(int)));
connect(check2, SIGNAL(stateChanged(int)), this, SLOT(changed2(int)));
layout->addWidget(check1);
layout->addWidget(check2);
setLayout(layout);