<div dir="ltr">Thank you! It worked!</div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jul 2, 2017 at 1:38 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"><span class="">On Sat, Jul 01, 2017 at 04:20:20PM -0700, Han Jiang wrote:<br>
> I saw that in the docs, but I don't know how to add it to my webview, tried<br>
> on google and did not find any example.<br>
<br>
</span>Implement a QWebHistoryInterface subclass which implements<br>
addHistoryEntry and historyContains (e.g. by using a Python set), then<br>
call QWebHistoryInterface.<wbr>setDefaultInterface(<wbr>HistoryInterface())<br>
<br>
(You might need to keep a reference to it though, to prevent it from<br>
being garbage collected)<br>
<div class="HOEnZb"><div class="h5"><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>
</div></div></blockquote></div><br></div>