<div dir="ltr">Yes thats not help full because it is important for me to foreground the results all together. For example: "Hello world"is my text when I want to search "l"I want it to be highlighted .I couldn't do that with QTextEdit::find.</div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Aug 19, 2018 at 8:34 PM, Florian Bruhin <span dir="ltr"><<a href="mailto:me@the-compiler.org" target="_blank">me@the-compiler.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Sun, Aug 19, 2018 at 08:31:13PM +0430, Maziar Parsijani wrote:<br>
> I use the below code to search in qtextedit to match a word.Are there any<br>
> better Idea.<br>
<br>
</span>Are you aware that there's a QTextEdit::find method?<br>
<span class="HOEnZb"><font color="#888888"><br>
Florian<br>
<br>
-- <br>
<a href="https://www.qutebrowser.org" rel="noreferrer" target="_blank">https://www.qutebrowser.org</a> | <a href="mailto:me@the-compiler.org">me@the-compiler.org</a> (Mail/XMPP)<br>
   GPG: 916E B0C8 FD55 A072 | <a href="https://the-compiler.org/pubkey.asc" rel="noreferrer" target="_blank">https://the-compiler.org/<wbr>pubkey.asc</a><br>
         I love long mails! | <a href="https://email.is-not-s.ms/" rel="noreferrer" target="_blank">https://email.is-not-s.ms/</a><br>
</font></span></blockquote></div><br></div>