Hi all,

I'm trying to find a way find all occurrences of a specified string in a QTexedit document. The QTextedit::find() function only selects the first occurrence. For example consider the following text:

"the dog the cat",

If i search for string "the" I want to highlight both "the". I also tried using the QTextDocument::find() function and QRegexp with no luck.

Anyone here that have any suggestion to solve my problem.

/Nick