<warning type="top of head" />
How about something like this:
- Grab the QTextEdit::textCursor()
- If no selection then return?
- Position newcursor at start of selection
- Execute newcursor = find(str, newcursor, opts)
- If newcursor still inside selection then report match and repeat find(). You have operator<() to compare cursors, or you can use the start or end positions manually.
Bookmarks