How to get the row number of the QComboBox in QTableWidget
- by dreamxiuhuishan
Here is the code, but it dos not work. Who can create the code. Thanks very much!
void add()
{
QComboBox *ziduan = new QComboBox;
ziduan->addItem("??","nd");
int row =0;
int col =1;
QSignalMapper* signalMapper = new QSignalMapper(this);
connect(ziduan, SIGNAL(currentIndexChanged(int)), signalMapper, SLOT(map()));
…