[PyQt] [PYQT] Increse the regex in QtCore.QRegExp
michael h
michaelkenth at gmail.com
Sun Sep 16 04:31:01 BST 2018
>
> doc.setDefaultStyleSheet(<span class="highlight">found</span>)
>
> This is where the css rules go, not the html
> doc.setHtml()
>
> this would be where you set the html
Aside from that:
- Profile the code because the issue may not be where you expect it
- You might look into using QSyntaxHighlighter, which would allow you to
highlight without inserting HTML markup.
- If you could post a self contained runnable example I'd take a closer look
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20180915/665527f5/attachment.html>
More information about the PyQt
mailing list