Hi
I am trying to show an image on a local page... the image is stored in a resource file (images.res). I am not sure how should I override the QNetworkReply class to return the image specified.
Any help is appreciated...
Hi
I am trying to show an image on a local page... the image is stored in a resource file (images.res). I am not sure how should I override the QNetworkReply class to return the image specified.
Any help is appreciated...
The most common approach to loading custom stuff into a WebView seems to be to implement a custom scheme handler in QNetworkAccessManager with a corresponding reply implementation. This is described a bit here, with demo: http://qt-project.org/forums/viewthread/12965
You would then need to have your HTML files referring to the image or whatever using the new scheme:
Qt Code:
<img src="resource:///resources/images/amazing_horse.gif" />To copy to clipboard, switch view to plain text mode
Bookmarks