Hi guys,
I found the answer. Here if somebody needs it as well:
(...)
QUrl url
( "ftp://example.com" );
ftp->connectToHost( url.host( ), url.port( 21 ) );
ftp->login( "anonymous", "" );
// Put all the ftp commands you need
ftp->close( );
// Process the queue of ftp events
while ( ( ftp
->hasPendingCommands
( ) ) ||
( ftp
->currentCommand
( ) != QFtp::None ) ) qApp->processEvents( );
(...)
QUrl url( "ftp://example.com" );
ftp->connectToHost( url.host( ), url.port( 21 ) );
ftp->login( "anonymous", "" );
// Put all the ftp commands you need
ftp->close( );
// Process the queue of ftp events
while ( ( ftp->hasPendingCommands( ) ) || ( ftp->currentCommand( ) != QFtp::None ) )
qApp->processEvents( );
To copy to clipboard, switch view to plain text mode
Bookmarks