Hi!
I want to download files from the http using QNetworkAccesmanager, my ide is making a update functon for my program.
But how can i code the downloader???
Halvor.
 Novice
					
					
						Novice
					
					
                                        
					
						
							
								 
							
						
					
					
						 
    
    
    
    
    
    
   
    
    
    
    
    
   QNetworkAccessManager downloadfile
 QNetworkAccessManager downloadfile
		Hi!
I want to download files from the http using QNetworkAccesmanager, my ide is making a update functon for my program.
But how can i code the downloader???
Halvor.
 
    
    
    
    
    
    
   
    
    
       
    
    
       
    
    
    
   Re: QNetworkAccessManager downloadfile
 Re: QNetworkAccessManager downloadfile
		It's all in the docs. Isn't it? See detailed description of QNetworkAccessManager.
 Novice
					
					
						Novice
					
					
                                        
					
						
							
								 
							
						
					
					
						 
    
    
    
    
    
    
   
    
    
    
    
    
   Re: QNetworkAccessManager downloadfile
 Re: QNetworkAccessManager downloadfile
		Yes, but i can understand it. Exemples please
 
    
    
    
    
    
    
   
    
    
       
    
    
       
    
    
    
   Re: QNetworkAccessManager downloadfile
 Re: QNetworkAccessManager downloadfile
		Then the Newbie section is more suitable for you and there is an example in the docs:More is hardly possible, only the mention of QNetworkReply -> QIODevice::readAll().Qt Code:
QNetworkRequest request;
request.setRawHeader("User-Agent", "MyOwnBrowser 1.0"); // not needed
QNetworkReply *reply = manager->get(request);
connect(reply, SIGNAL(readyRead()), this, SLOT(slotReadyRead()));
connect(reply, SIGNAL(error(QNetworkReply::NetworkError)),
this, SLOT(slotError(QNetworkReply::NetworkError)));
connect(reply, SIGNAL(sslErrors(QList<QSslError>)),
this, SLOT(slotSslErrors(QList<QSslError>)));To copy to clipboard, switch view to plain text mode
 Intermediate user
					
					
						Intermediate user
					
					
                                        
					
						
							
								 
							
						
					
					
						 
    
    
    
    
    
    
   
    
    
       
    
    
       
    
    
       
    
    
    
   Re: QNetworkAccessManager downloadfile
 Re: QNetworkAccessManager downloadfile
		
i want use qhttp download part of an entry ,
can you help me and edit my source http://www.mediafire.com/?dzjaztigrnm
please read more:
http://www.qtcentre.org/threads/3006...t-of-an-entity
 Expert
					
					
						Expert
					
					
                                        
					
						
							
								 
							
								 
							
								 
							
								 
							
								 
							
								 
							
						
					
					
						 
    
    
    
    
    
    
   
    
    
    
    
   Re: QNetworkAccessManager downloadfile
 Re: QNetworkAccessManager downloadfile
		nhs_0702, please don't do that. It's extremely rude and bad etiquette. You have you own thread and people will reply there.
 Beginner
					
					
						Beginner
					
					
                                        
					
						
							
								 
							
						
					
					
						 
    
    
    
    
    
    
   Re: QNetworkAccessManager downloadfile
 Re: QNetworkAccessManager downloadfile
		nice one!!!!
Bookmarks