In a delegate that uses a QComboBox as the editor, how does one retrieve the index of the selected item ?
I can only get the selected text from the item.
Qt Code:
  1. QTableWidgetItem* item = tableWidget->item(row, col);
  2. qDebug() << "data is: " << item->data(0);
To copy to clipboard, switch view to plain text mode