Hi guys,

I found the answer. Here if somebody needs it as well:

Qt Code:
  1. (...)
  2. QUrl url( "ftp://example.com" );
  3. ftp->connectToHost( url.host( ), url.port( 21 ) );
  4. ftp->login( "anonymous", "" );
  5.  
  6. // Put all the ftp commands you need
  7.  
  8. ftp->close( );
  9.  
  10. // Process the queue of ftp events
  11. while ( ( ftp->hasPendingCommands( ) ) || ( ftp->currentCommand( ) != QFtp::None ) )
  12. qApp->processEvents( );
To copy to clipboard, switch view to plain text mode