[Qt-interest] In need of help in qtwebkit, QNetworkAccessManager and QNetworkReply

Zaid Amir z.alamir at genie-soft.com
Tue Feb 23 15:15:23 CET 2010


 

Hi

 

I've been having a problem for quite some time now and I have tried posting
on most of the qt forums but so far I haven't got a single reply, and I am
hoping that the same won't happen with this email.

 

I am currently developing an GUI for an application using QTWebKit on
windows. Everything is going very well so far except for one single problem.


In my design there are certain images that are stored in resource files
(.rc), mostly small images and icons that are used on the HTML display.

 

I have been trying for over a week now to try and load those images into
memory and return them to my webview to be displayed. I have managed to
override both QNetworkAccessManager and get the request from the currently
loading page, parse the given url which is basically a special url (for
example: "rc:image.jpg"), this would mean that image.jpg is currently
residing in a resource file so I should search for it and return it to
webview to be displayed.

 

I am not sure how am I suppose to load the image data into memory and point
my QNetworkReply object to it. I would appreciate any hint, example or idea
to make this work. 

 

Regards

 

 


cid:image001.jpg at 01CA35ED.DA0878B0

Zaid Al-Amir

C++ Software Developer

...........................................

Email: z.alamir at genie-soft.com

Web:  <http://www.genie-soft.com/> www.genie-soft.com

cid:image002.jpg at 01CA35ED.DA0878B0 http://www.linkedin.com/in/zaidamir

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100223/b8236c06/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 5583 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100223/b8236c06/attachment.jpe 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 2139 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100223/b8236c06/attachment-0001.jpe 


More information about the Qt-interest-old mailing list