<div dir="ltr">I saw that in the docs, but I don't know how to add it to my webview, tried on google and did not find any example.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jul 1, 2017 at 2:28 AM, 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"><div class="HOEnZb"><div class="h5">On Fri, Jun 30, 2017 at 03:09:56PM -0700, Han Jiang wrote:<br>
> Hi I tried this in pyqt 4.10.1,qt 4.8.5, qtwebkit 534.34, on centos 7, all<br>
> the other css work but not a:visited.<br>
><br>
> <a href="https://gist.github.com/oglops/d24a6217f2c763657a8e5ef83df6f503" rel="noreferrer" target="_blank">https://gist.github.com/<wbr>oglops/<wbr>d24a6217f2c763657a8e5ef83df6f5<wbr>03</a><br>
<br>
</div></div>Does it work when you implement a QWebHistoryInterface?<br>
<a href="http://doc.qt.io/qt-4.8/qwebhistoryinterface.html" rel="noreferrer" target="_blank">http://doc.qt.io/qt-4.8/<wbr>qwebhistoryinterface.html</a><br>
<br>
FWIW this works out of the box with Qt5 and an updated QtWebKit or<br>
QtWebEngine.<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><br>______________________________<wbr>_________________<br>
PyQt mailing list    <a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br>
<a href="https://www.riverbankcomputing.com/mailman/listinfo/pyqt" rel="noreferrer" target="_blank">https://www.<wbr>riverbankcomputing.com/<wbr>mailman/listinfo/pyqt</a><br></blockquote></div><br></div>