How can I load scripts, styles and images from a non-URL source?

Posted by Jen on Stack Overflow See other posts from Stack Overflow or by Jen
Published on 2010-05-28T10:17:00Z Indexed on 2010/05/28 10:21 UTC
Read the original article Hit count: 231

Filed under:
|
|
|

I am integrating WebKit (via Qt) into an application. Instead of having WebKit retrieve scripts, CSS files and images via URLs, I want my application to provide them (e.g. retrieved from a database).

For example, a "regular" web page may contain this tag:

<IMG src="photos/album1/123456.jpg">

Instead of WebKit fetching this image from a server or the file system, I would prefer some kind of callback that allows my application to provide this image.

How can I accomplish this?

© Stack Overflow or respective owner

Related posts about qt

Related posts about resources