download and store/show image
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
Re: download and store/show image
Quote:
Originally Posted by
peter_hr892h
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?
Quote:
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.
Re: download and store/show image
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!
Re: download and store/show image
You might also be interested in Ariya's blog.
You can check his other posts too.. many are related to getting web info and displaying them in widgets.