[PyQt] [PYQT]Search in QTextedit

Maziar Parsijani maziar.parsijani at gmail.com
Sun Aug 19 17:19:25 BST 2018


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.

On Sun, Aug 19, 2018 at 8:34 PM, Florian Bruhin <me at the-compiler.org> wrote:

> On Sun, Aug 19, 2018 at 08:31:13PM +0430, Maziar Parsijani wrote:
> > I use the below code to search in qtextedit to match a word.Are there any
> > better Idea.
>
> Are you aware that there's a QTextEdit::find method?
>
> Florian
>
> --
> https://www.qutebrowser.org | me at the-compiler.org (Mail/XMPP)
>    GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc
>          I love long mails! | https://email.is-not-s.ms/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20180819/1e9e5eba/attachment.html>


More information about the PyQt mailing list