- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
//retrive the weather file
QProcess* process = new QProcess(this);
QString command = "wget -O " + QDir::homePath() + "/.weather.xml http://weather.yahooapis.com/forecastrss?p=" + zip;
if(tempType == "C")
{
command.append("&u=c");
}
process->start(command);
process->waitForFinished();
delete process;
Комментарии (0) RSS