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

Eric Clark eclark at ara.com
Tue Feb 23 16:22:23 CET 2010


Zaid,

I asked a question once before about loading resources that are not Qt resources, such as Visual Studio .rc files. The reply that I got was that Qt cannot load those types of resources. The only way to load a resource file via Qt is to use the Qt resource system, which you can read about here http://doc.trolltech.com/4.6/resources.html. In my opinion, it would be really nice if Qt had some way of loading Microsoft resources, but, as of now, there is no way to do it.

Thanks,
Eric

From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Zaid Amir
Sent: Tuesday, February 23, 2010 8:15 AM
To: qt-interest at trolltech.com
Subject: [Qt-interest] In need of help in qtwebkit, QNetworkAccessManager and QNetworkReply


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 01CAB469.A0D1F300]

Zaid Al-Amir
C++ Software Developer
...........................................
Email: z.alamir at genie-soft.com
Web: www.genie-soft.com<http://www.genie-soft.com/>
[cid:image002.jpg at 01CAB469.A0D1F300] 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/f063ee83/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 5583 bytes
Desc: image001.jpg
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100223/f063ee83/attachment.jpg 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 2139 bytes
Desc: image002.jpg
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100223/f063ee83/attachment-0001.jpg 


More information about the Qt-interest-old mailing list