[Qt-interest] How to prevent QtWebKit from loading files with given extension?

Piotr Dobrogost pd at news.qt.dobrogost.pl
Thu Aug 20 10:13:13 CEST 2009


Daniel Vérité wrote:

> You can do it by providing your own QNetworkManager-derived class, with
> QWebPage::setNetworkAccessManager()
> This class has a createRequest() function that is called by QtWebKit to load
> each external object and that you want to reimplent.

Thanks Daniel.


-- 
Piotr Dobrogost

"Break C++ and the major implementations of Java and C# would also 
break" - Bjarne Stroustrup



More information about the Qt-interest-old mailing list