Using the webkit classes without fetching stuff from Internet
A mail clients wants to display html-mails but don’t want to fetch stuff from internet automatically. We now have a solution for that. Qt has introduced QWebPage and QWebView for displaying HTML in a widget. Unfortunatly those don’t use the KDE KIO’s for fetching the stuff. And that means no proxy for example. Urs has introduced some new classes to kdelibs which now makes this possible.
For example:
QWebPage* widget = new QWebPage( this );
KIO::AccessManager* accessManager = new KIO::AccessManager( this );
accessManager->setExternalContentAllowed( false );
widget->setNetworkAccessManager( accessManager );
Pretty simple! Now the QWebPage uses KDE’s KIO and does not fetch the external content automatically.
If you need a QWebView, you can set the accessManager via page()…