Looks like you all did not read problem carefully... Your suggestions are not applicable. The main task is highlight keywords in the text. That means - not the presence of word in text must be confirmed. Instead the position of text to highlight must be encountered. Split list is absolutely useless in this case. It only can confirm or decline the presence of keyword inside text. But cannot give it's index.
Again - I have a list of keywords. They must be found in QString to know their positions inside this string. The set of delimiters is also known. Anybody more familiar can help?
BTW: looks like both previous "helpers" even don't know how highlighter in Qt works...




Reply With Quote
Bookmarks