C++ (Qt)...QList<QString>::iterator result = qFind(list.begin(), list.end(), "val");int index = result - list.begin();...