Results 1 to 4 of 4

Thread: download and store/show image

  1. #1
    Join Date
    Jun 2009
    Posts
    2
    Thanks
    1

    Question 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 ...) 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

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: download and store/show image

    Quote Originally Posted by peter_hr892h View Post
    Hi,

    (I am a Newbie with Qt so maybe the is not a big deal, but I did not found a proper answer yet ...)
    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.

  3. The following user says thank you to Lykurg for this useful post:

    peter_hr892h (24th June 2009)

  4. #3
    Join Date
    Jun 2009
    Posts
    2
    Thanks
    1

    Default 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!

  5. #4
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default 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.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.