[Interest] Using different QNetworkAccessManager instances for multiple QML's WebView items
Jan Kundrát
jkt at flaska.net
Mon May 14 17:07:08 CEST 2012
On 04/30/12 20:18, Jan Kundrát wrote:
> Another thing would be to build on top of the QDeclarativeWebViewPrivate
> class, letting it use a specific QNAM -- that must be doable, but looks
> like a huge amount of work (I haven't used *graphical* items implemented
> in C++ from QML yet, just some basic QObjects).
Given that both QDeclarativeWebView and the QDeclarativeWebViewPrivate
are not available to Qt applications, I ended up copying their sources
into my source tree, renaming the relevant classes to prevent symbol
name clashes and adding the five lines or so of the QNAM functionality
in them. The result is at [1]. This approach proved to be very handy as
it allowed me to extend the WebView's settings with support for
userStyleSheetUrl (already available through the QWebView) in no time.
Cheers,
Jan
[1]
https://gitorious.org/trojita/trojita/trees/master/src/Harmattan/QNAMWebView
--
Trojita, a fast e-mail client -- http://trojita.flaska.net/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120514/04ad8bd5/attachment.sig>
More information about the Interest
mailing list