Giter Club home page Giter Club logo

dsbyliteexample's Issues

用VS2008+QT4.8.4编译时报错

我把您的代码下载下来,然后编译不通过,编译错误如下:
1>qftp.cpp
1>.\qftp.cpp(2210) : error C2248: 'QFtp::commandStarted' : cannot access protected member declared in class 'QFtp'
1> c:\users\user\desktop\dsbyliteexample-master\qftpseriesdown\qftp.h(144) : see declaration of 'QFtp::commandStarted'
1> c:\users\user\desktop\dsbyliteexample-master\qftpseriesdown\qftp.h(53) : see declaration of 'QFtp'
1>.\qftp.cpp(2267) : error C2248: 'QFtp::stateChanged' : cannot access protected member declared in class 'QFtp'
1> c:\users\user\desktop\dsbyliteexample-master\qftpseriesdown\qftp.h(138) : see declaration of 'QFtp::stateChanged'
1> c:\users\user\desktop\dsbyliteexample-master\qftpseriesdown\qftp.h(53) : see declaration of 'QFtp'
1>.\qftp.cpp(2291) : error C2248: 'QFtp::commandFinished' : cannot access protected member declared in class 'QFtp'
1> c:\users\user\desktop\dsbyliteexample-master\qftpseriesdown\qftp.h(145) : see declaration of 'QFtp::commandFinished'
1> c:\users\user\desktop\dsbyliteexample-master\qftpseriesdown\qftp.h(53) : see declaration of 'QFtp'
1>.\qftp.cpp(2297) : error C2248: 'QFtp::done' : cannot access protected member declared in class 'QFtp'
1> c:\users\user\desktop\dsbyliteexample-master\qftpseriesdown\qftp.h(146) : see declaration of 'QFtp::done'
1> c:\users\user\desktop\dsbyliteexample-master\qftpseriesdown\qftp.h(53) : see declaration of 'QFtp'
1>.\qftp.cpp(2369) : error C2248: 'QFtp::commandFinished' : cannot access protected member declared in class 'QFtp'
1> c:\users\user\desktop\dsbyliteexample-master\qftpseriesdown\qftp.h(145) : see declaration of 'QFtp::commandFinished'
1> c:\users\user\desktop\dsbyliteexample-master\qftpseriesdown\qftp.h(53) : see declaration of 'QFtp'
1>.\qftp.cpp(2374) : error C2248: 'QFtp::done' : cannot access protected member declared in class 'QFtp'
1> c:\users\user\desktop\dsbyliteexample-master\qftpseriesdown\qftp.h(146) : see declaration of 'QFtp::done'
1> c:\users\user\desktop\dsbyliteexample-master\qftpseriesdown\qftp.h(53) : see declaration of 'QFtp'
1>.\qftp.cpp(2384) : error C2248: 'QFtp::stateChanged' : cannot access protected member declared in class 'QFtp'
1> c:\users\user\desktop\dsbyliteexample-master\qftpseriesdown\qftp.h(138) : see declaration of 'QFtp::stateChanged'
1> c:\users\user\desktop\dsbyliteexample-master\qftpseriesdown\qftp.h(53) : see declaration of 'QFtp'
1>.\qftp.cpp(2397) : error C2248: 'QFtp::rawCommandReply' : cannot access protected member declared in class 'QFtp'
1> c:\users\user\desktop\dsbyliteexample-master\qftpseriesdown\qftp.h(142) : see declaration of 'QFtp::rawCommandReply'
1> c:\users\user\desktop\dsbyliteexample-master\qftpseriesdown\qftp.h(53) : see declaration of 'QFtp'
1>mainwindow.cpp
1>.\mainwindow.cpp(14) : error C2065: 'nullptr' : undeclared identifier
1>.\mainwindow.cpp(15) : error C2248: 'QFtp::rawCommandReply' : cannot access protected member declared in class 'QFtp'
1> c:\users\user\desktop\dsbyliteexample-master\qftpseriesdown\qftp.h(142) : see declaration of 'QFtp::rawCommandReply'
1> c:\users\user\desktop\dsbyliteexample-master\qftpseriesdown\qftp.h(53) : see declaration of 'QFtp'
1>.\mainwindow.cpp(15) : error C2059: syntax error : '['
1>.\mainwindow.cpp(15) : error C2143: syntax error : missing ')' before '{'
1>.\mainwindow.cpp(15) : error C2143: syntax error : missing ';' before '{'
1>.\mainwindow.cpp(16) : error C2065: 'str' : undeclared identifier
1>.\mainwindow.cpp(17) : error C2059: syntax error : ')'
1>.\mainwindow.cpp(18) : error C2248: 'QFtp::readyRead' : cannot access protected member declared in class 'QFtp'
1> c:\users\user\desktop\dsbyliteexample-master\qftpseriesdown\qftp.h(140) : see declaration of 'QFtp::readyRead'
1> c:\users\user\desktop\dsbyliteexample-master\qftpseriesdown\qftp.h(53) : see declaration of 'QFtp'
1>.\mainwindow.cpp(18) : error C2059: syntax error : '['
1>.\mainwindow.cpp(18) : error C2143: syntax error : missing ')' before '{'
1>.\mainwindow.cpp(18) : error C2143: syntax error : missing ';' before '{'
1>.\mainwindow.cpp(20) : error C2059: syntax error : ')'
1>main.cpp
1>ftpcutdown.cpp
1>.\ftpcutdown.cpp(36) : error C2248: 'QNetworkReply::finished' : cannot access protected member declared in class 'QNetworkReply'
1> c:\qt\4.8.4\include\qtnetwork../../src/network/access/qnetworkreply.h(149) : see declaration of 'QNetworkReply::finished'
1> c:\qt\4.8.4\include\qtnetwork../../src/network/access/qnetworkreply.h(65) : see declaration of 'QNetworkReply'
1>.\ftpcutdown.cpp(36) : error C2059: syntax error : '['
1>.\ftpcutdown.cpp(36) : error C2143: syntax error : missing ')' before '{'
1>.\ftpcutdown.cpp(36) : error C2143: syntax error : missing ';' before '{'
1>.\ftpcutdown.cpp(39) : error C2059: syntax error : ')'
1>Generating Code...
请问如何解决?期待您的回复

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.