How to correctly update an image in a QLabel?

There is a web site that has a daily updated image on it. I want to link that image to my web site. How Do I ?

  • How do I link the image from this site to my site. http://workplan.org/forestry/firereport/public/status/status_ParkFalls.htm I would like the image of the fire level posted on my web site, and when the DNR updates theirs to change the fire level I want mine to automaticly update. I can link the image, but when they change theirs, mine does not change. How would I fix that? I have the image on my web site so guests can see the fire level before they head out to the cabin, to see if it is ok to have a camp fire. Suggestions

  • Answer:

    To do what you want, you're going to need programming. In PHP, you could use CURL to grab the page, examine the URL of the image, and then programmatically change your page to display the same image. You can do the same in ASP.NET by creating a Web service. That said, you could always just IFrame their page inside yours: <iframe src="their URL" width="575" height="300"></iframe> UPDATE: The person who says I don't know what I am talking about, and the previous answer, both ignore that this question asks how to extract the paticular image displayed on that page, since it will change. The previous answer only explains how to copy one paticular image to the page. But as the question clearly notes, the image is not always the same. The questioner, therefore, has two options: 1. Read the content of the page in order to fetch the URL and display the proper image. To do that, he needs to script his page. 2. Display the other page on his page. To do that, he can use iframe.

THE GEEK OF THE WEEK at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

Use this code in your website, it should work: <IMG src='http://workplan.org/forestry/firere… If it doesn't work, try hitting the refresh button on your browser, it might be a cache issue. If that's the case, then it's your browser that's having trouble, not your website. Yahoo messed up the code, so here it is in a differetn version that will work. <IMG src=' http:// workplan.org/ forestry/ firereport/ images/ Status_LowPermitsRequired.jpg '> Just put that all on one line, with no spaces, except between "IMG src".

Jonathan

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.