QList<QString>::iterator i = qBinaryFind(dictionaryList.begin(), dictionaryList.end(),text);
listView->scrollTo(i,1);
QList<QString>::iterator i = qBinaryFind(dictionaryList.begin(), dictionaryList.end(),text);
listView->scrollTo(i,1);
To copy to clipboard, switch view to plain text mode
I need to do something like this. The dictionaryList is a QStringList . It says in the manual that i is the position. I would like to move to the listView where it is the first match. How do I convert an iterator to QModelIndex ?
Also how do I create a List of items that matches with all the values in QStringList so that I could make a new StringList and set the proxy model to it and all the matched Strings are shown .
Bookmarks