PDA

View Full Version : download and store/show image



peter_hr892h
24th June 2009, 16:22
Hi,

(I am a Newbie with Qt so maybe the is not a big deal, but I did not found a proper answer yet :crying:...) I am looking for a little hint for downloading an image from the web. I simply want to download and simultaneously show the image on the screen, so best would be to get the image from the web into the memory, so for me to save and show it immediately. I did not get the http network example[1] running (error: invalid use of undefined type `struct QHttp'), so I hope somebody can help me.


Sorry if there is already a thread about this, I did not found anything with the keywords I used.


[1] http://doc.trolltech.com/4.2/network-http.html

Kind regards,
Peter

Lykurg
24th June 2009, 16:27
Hi,

(I am a Newbie with Qt so maybe the is not a big deal, but I did not found a proper answer yet :crying:...)
Then may be our Newbie section would be best?

I am looking for a little hint for downloading an image from the web. I simply want to download and simultaneously show the image on the screen, so best would be to get the image from the web into the memory, so for me to save and show it immediately. I did not get the http network example[1] running (error: invalid use of undefined type `struct QHttp'), so I hope somebody can help me.


Sorry if there is already a thread about this, I did not found anything with the keywords I used.


[1] http://doc.trolltech.com/4.2/network-http.html

Kind regards,
Peter

Use QT += network in your pro file.

peter_hr892h
24th June 2009, 16:50
Wow, ok. Thanks, that was quick. The program is doing what I need, so I guess there won't be any problems to get the bits I need of the code. Thanks Lykurg!

aamer4yu
25th June 2009, 06:16
You might also be interested in Ariya's blog (http://labs.trolltech.com/blogs/2009/01/15/capturing-web-pages/).
You can check his other posts too.. many are related to getting web info and displaying them in widgets.