How to inject local CSS and JavaScript from qrc:// into QWebView?
Posted
by
speakman
on Stack Overflow
See other posts from Stack Overflow
or by speakman
Published on 2012-08-28T09:36:46Z
Indexed on
2012/08/28
9:38 UTC
Read the original article
Hit count: 307
Trying to inject CSS and JS files reachable through Qt resources (qrc://) through JavaScript (using this technique) which itself is injected through a evalutateJavaScript() call fails fails miserably hitting this test in QNetworkAccessFileBackend.
I can't figure how to make this work, really. I could subclass QNAFB but then I would need to subclass QNAM as well to make it instance my subclass instead of QNAFB?
© Stack Overflow or respective owner