Current text in Qcombobox
-
see the "docs":http://qt-project.org/doc/qt-4.8/qcombobox.html#currentText-prop
@text = myComboBox.currentText()@ -
no i achive this in another way
@int row = 1;
int col = 8;
QStringList dislist;
QComboBox* com = new QComboBox(this);
com->addItems(dislist);
ui->widget->setCellWidget(row, col, com);//another function
QComboBox* cell_com = dynamic_cast<QComboBox*>(ui->widget->cellWidget(1, 8));
QString text;
if(cell_com != 0)
{
text = cell_com->currentText();
}@Thank U for ur reply