[SOLVED] How to get index of certain value in tableView?
-
in Qt u can get data from index like this 'Index.data().toString()', i need opposite. I have data and i want index.
Is there in Qt some native function? Or i have to map those data in some array for example
-
QModelIndexList foundIndexes = tableView->model()->match(QModelIndex(), int role, "My String");
-
int role should be Qt::DisplayRole
-
Hi,
Do you mean you got it working ?
-
hi yes, i have marked it [solved]