Home > Back-end >  QFTP is connect to the server for a long time... state
QFTP is connect to the server for a long time... state

Time:11-24

It seems that many recollections tutorial yesterday, will QFtp 5.0 this type of configuration on the QT5.9.7, problems appeared in the process of using,

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,
  • Related