Results 1 to 2 of 2

Thread: How to use a image from internet

  1. #1
    Join Date
    Feb 2010
    Posts
    12
    Thanks
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default How to use a image from internet

    For example, I want to set icon for each listwidgetitem, but the icon is located at http://www.test.com/test.jpg , how can I use this image?
    Can I put the image url in qrc file and use :imagename to access it? or Can I use QIcon icon(" http://www.test.com/test.jpg ") ?

  2. #2
    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: How to use a image from internet

    You will need to download the image first and then set it as an icon.
    To download , see QNetworkAccessManager::get

Similar Threads

  1. Internet Speedometer
    By dilidpan in forum Qt Programming
    Replies: 10
    Last Post: 23rd May 2010, 15:50
  2. Read a csv file from Internet
    By abghosh in forum Qt Programming
    Replies: 4
    Last Post: 20th February 2010, 16:04
  3. Is internet connected
    By bunjee in forum Qt Programming
    Replies: 2
    Last Post: 24th November 2009, 21:22
  4. Play chess over the Internet
    By cwnelatury in forum Qt Programming
    Replies: 1
    Last Post: 3rd June 2009, 05:12
  5. Check connecting to Internet
    By gtthang in forum Qt Programming
    Replies: 2
    Last Post: 17th February 2006, 17:13

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.