昨天看來許多往事的教程,將QFtp 5.0這個類配置在了QT5.9.7上,使用程序中出現問題。
ui->setupUi(this);
ftp = new QFtp(parent);
ftp->connectToHost("192.168.6.133", 21);
ftp->login("john", "123123");
// 當每條命令開始執行時發出相應的信號
connect(ftp,SIGNAL(commandStarted(int)),
this,SLOT(ftpCommandStarted(int)));
// 當每條命令執行結束時發出相應的信號
connect(ftp,SIGNAL(commandFinished(int,bool)),
this,SLOT(ftpCommandFinished(int,bool)));
運行結果如下:

希望得到大佬指點。
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/14243.html
標籤:工具平臺和程序庫
