FWIW, at its simplest use the built in regular expression Find ability in QPlainTextEdit to find your string.
Then if you need to sync Preview, then extract the current cursor position in the file being edited and use an xml parser (Qt has one) to extract the webpath for that position and build up a javascript command to scroll to it and run that on Preview.
|