QModelIndexList matchIndexes = model->match(model->index(0, column), Qt::DisplayRole, data, 1, Qt::MatchExactly);if (!matchIndexes.isEmpty()) return matchIndexes.at(0).row();else return -1;