[PyQt] a:visited color css not working in QWebView ?
Florian Bruhin
me at the-compiler.org
Sun Jul 2 09:38:31 BST 2017
On Sat, Jul 01, 2017 at 04:20:20PM -0700, Han Jiang wrote:
> 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.
Implement a QWebHistoryInterface subclass which implements
addHistoryEntry and historyContains (e.g. by using a Python set), then
call QWebHistoryInterface.setDefaultInterface(HistoryInterface())
(You might need to keep a reference to it though, to prevent it from
being garbage collected)
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 --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20170702/79a51070/attachment.sig>
More information about the PyQt
mailing list