16,235
社区成员
发帖
与我相关
我的任务
分享
txt1.open(QIODevice::ReadOnly);
QByteArray by_txt=txt1.readAll();
txt1.close(); qDebug()<<by_txt;
QNetworkAccessManager manager;
QUrl u("ftp://anonymous:qqqqqq@172.25.239.1/asd");
u.setScheme("ftp");//设置该计划描述了URL的类型(或协议)
u.setFragment("mkdir hello");
u.setPort(21);
QNetworkReply * reply = manager.put(QNetworkRequest(u), by_txt);
u.setHost("172.25.239.1");//设置主机地址
u.setUserName("anonymous");
u.setPassword("anonymous");
u.setPath("D:/report_data2.txt");
url.setPort(2121);
F:\Qt\myftp/qftp.cpp:2253: undefined reference to `QFtp::commandStarted(int)'
F:\Qt\myftp/qftp.cpp:2306: undefined reference to `QFtp::stateChanged(int)'
debug/qftp.o: In function `ZN11QFtpPrivate13_q_piFinishedERK7QString':
F:\Qt\myftp/qftp.cpp:2330: undefined reference to `QFtp::commandFinished(int, bool)'
F:\Qt\myftp/qftp.cpp:2336: undefined reference to `QFtp::done(bool)'
debug/qftp.o: In function `ZN11QFtpPrivate10_q_piErrorEiRK7QString':
F:\Qt\myftp/qftp.cpp:2408: undefined reference to `QFtp::commandFinished(int, bool)'