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/

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to