Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to use Qhttp for downloading?? with the following code..
void MyClass::doSth()
     {
    QHttp http( "www.google.com" );
     connect(&http, SIGNAL(done(bool)), this, SLOT(httpdone(bool)));
     QFile file( "temp.txt" );
     file.open( QIODevice::WriteOnly );
     mutex.lock();
    http.get( "/" );
     fin.wait( &mutex );
   file.close();
   mutex.unlock();
   }
 
(protected slots
 
 void MyClass::httpdone(bool error)
  {
   if (error == false)
    {
    fin.wakeAll();
   }

The file is not getting downloaded.. please help me
Posted
Updated 16-Mar-11 22:19pm
v2
Comments
Kurt Degiorgio 22-Mar-11 4:56am    
you asked the same question a dozen times.... -_-

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900