Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
[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
Do you mean you got it working ?
hi yes, i have marked it [solved]