How can i get ftp files show on my list widget using QNetworkAccessManager Qt 5.8?
-
Hi,
The old QFtp module might make your life easier.
-
wrote on 9 Feb 2017, 22:11 last edited by
But Qt Creator does not recognize it. what can i do please?
-
Clone it and build it.
-
wrote on 9 Feb 2017, 22:16 last edited by
those links gave me a 404 error. sorry
-
What links ?
-
wrote on 9 Feb 2017, 22:23 last edited by
git://code.qt.io/qt/qtftp.git
http://code.qt.io/qt/qtftp.git
https://code.qt.io/qt/qtftp.git -
Those are links to use with the
git clone
command. -
wrote on 9 Feb 2017, 22:32 last edited by
please be patient with me im new in Qt. i have typed git clone git://code.qt.io/qt/qtftp.git. i have this message checking connectivity....done. what can i do else?
-
This has nothing to do with Qt.
Didn't you get a new folder named qtftp ?
-
wrote on 9 Feb 2017, 22:38 last edited by
yes . will i build it in Qt?
-
Open the project .pro file with Qt Creator and build it.
By the way, what OS are you on ?
-
wrote on 9 Feb 2017, 22:48 last edited by
linux mint 18 sarah
-
wrote on 9 Feb 2017, 22:53 last edited by
i got this message : cannot create a directory / mkspecs/modules-inst when im building it
-
Which version of Qt are you using to build that module ?
-
wrote on 9 Feb 2017, 22:59 last edited by
Qt 5.7.1 . now i can build . what can i do else?
-
wrote on 9 Feb 2017, 23:04 last edited by
my programm does not recognize QFtp but i have already built it
-
Did you install the module ?
-
wrote on 9 Feb 2017, 23:18 last edited by
yes i have installed the module
-
Lifetime Qt Championwrote on 9 Feb 2017, 23:37 last edited by SGaist 2 Sept 2017, 23:38
Did you add
QT += ftp
to your .pro file and re-run qmake after that ? -
wrote on 10 Feb 2017, 06:43 last edited by
yes.
But commandFinshed signal does not work. here is my code:
FtpDialog.h
#ifndef FTPDIALOG_H
#define FTPDIALOG_H#include <QDialog>
#include <QFtp>
#include <QMessageBox>
#include <QDebug>namespace Ui {
class FtpDialog;
}class FtpDialog : public QDialog
{
Q_OBJECTpublic:
explicit FtpDialog(QWidget *parent = 0);
~FtpDialog();public slots:
void connectClicked();
void ftpFinished(int, bool);
void getFileList();
signals:private:
Ui::FtpDialog *ui;
QFtp ftp;
};#endif // FTPDIALOG_H
13/41