Hi there!
I just installed QT 4.2. All example projects were compled OK after installation, but if try to
cd ../examples/network/ftp
qmake -project
qmake
gmake
i get error:
ftpwindow.cpp:25:21: QtNetwork: No such file or directory
ftpwindow.cpp: In member function `void FtpWindow::connectOrDisconnect()':
ftpwindow.cpp:88: invalid use of undefined type `struct QFtp'
ftpwindow.h:32: forward declaration of `struct QFtp'
ftpwindow.cpp:89: invalid use of undefined type `struct QFtp'
ftpwindow.h:32: forward declaration of `struct QFtp'
ftpwindow.cpp:102: invalid use of undefined type `struct QFtp'
ftpwindow.h:32: forward declaration of `struct QFtp'
ftpwindow.cpp:104: no matching function for call to `FtpWindow::connect(QFtp*&,
const char[28], FtpWindow* const, const char[31])'
../../../src/corelib/kernel/qobject.h:181: candidates are: static bool
QObject::connect(const QObject*, const char*, const QObject*, const char*,
Qt::ConnectionType = AutoConnection)
../../../src/corelib/kernel/qobject.h:283: bool
QObject::connect(const QObject*, const char*, const char*,
Qt::ConnectionType = AutoConnection) const
ftpwindow.cpp:106: no matching function for call to `FtpWindow::connect(QFtp*&,
const char[28], FtpWindow* const, const char[29])'
===
How to resolve the problem?
Thanks
Bookmarks