本人做的是 qt for symbian 的开发
client.h如下:cpp文件就不写了
#ifndef NFCLIENT_H
#define NFCLIENT_H
#include <QAbstractSocket>
#include <QTcpSocket>
class Client : public QTcpSocket{
Q_OBJECT
public:
explicit Client(QObject *parent = 0);
void sendFile(const QString& file, const QHostAddress& dest);
void sendFile(const QString& file, const QString& dest);
void sendEOF();
signals:
void fileSize(qint64 size);
void message(const QString& str);
void onError(qint32);
public slots:
void on_connected();
void displaySocketError(QAbstractSocket::SocketError e);
private:
QString filePath;
};
#endif // NFCLIENT_H
需要在widget.cpp 实例化一个client 对象,
如下:nfClient *client= new nfClient(this);
每次加上 这句话,就报错 \S60_5th_Edition_SDK_v1.0\epoc32\release\winscw\udeb\MobileClient.exe] Error 1
去掉后就不报错,请教高手 帮忙解决。。