triperzonak
20th September 2008, 09:07
hi,
i want to access the file where i put the http->get, how ever the file remain empty until the application closes? how to solve this?
connect(http, SIGNAL(done(bool)), this, SLOT(read_now()));
.....
QFile *file = new QFile(fileName);
http->setHost(url.host(),url.port() != -1 ? url.port() : 80);
http->get(url.path() +"?" + url.query(),&file);
....
void myclass::readnow()
{
//still empty? how to solve this?
}
thanks
i want to access the file where i put the http->get, how ever the file remain empty until the application closes? how to solve this?
connect(http, SIGNAL(done(bool)), this, SLOT(read_now()));
.....
QFile *file = new QFile(fileName);
http->setHost(url.host(),url.port() != -1 ? url.port() : 80);
http->get(url.path() +"?" + url.query(),&file);
....
void myclass::readnow()
{
//still empty? how to solve this?
}
thanks