The UI - & gt; SetupUi (this);
FTP=new QFtp (parent);
FTP - & gt; ConnectToHost (" 192.168.6.133 ", 21);
FTP - & gt; Login (" John ", "123123");
//when each command began to perform signal corresponding
The connect (FTP, SIGNAL (commandStarted (int)),
This SLOT (ftpCommandStarted (int)));
//when each command is executed at the end of the signal of the corresponding
The connect (FTP, SIGNAL (commandFinished (int, Boolean)),
This SLOT (ftpCommandFinished (int, Boolean)));
The results are as follows:

Hope to get bosses give directions,