Hi, i am new to qt.
I have create a same function as andre but i cant find a way the get the value of the checkbox that was clicked.
@QSignalMapper* mapper = new QSignalMapper(this);
QMultiMap<QString, QString>::iterator a = examination.find("test_id");
while (a != examination.end() && a.key() == "test_id") {
QCheckBox* cb = new QCheckBox(a.value(),this);
_layout2->addWidget(cb);
xml.readNextStartElement();
++a;
connect(cb, SIGNAL( stateChanged(int) ), mapper, SLOT(map()));
mapper->setMapping(cb, i);
}
_layout2->addWidget(kataxwrisi);
connect(kataxwrisi,SIGNAL(clicked()),this,SLOT(ReadXMLFile()));
connect(mapper, SIGNAL(mapped(QString)), this, SLOT(checkboxClicked(QString)));
}
void QXSRExample::checkboxClicked(QString checkbox){
}@
for example if the first checkbox has the value "A" i want to know..
what can i do?