
Originally Posted by
zlatko
Can we ask a piece of code?
I dunno, what do you want to ask it? 
Anyway .. here it is (comments stripped for space savings):
#include <QtCore>
class ConnectionThread
: public QThread { Q_OBJECT
public:
ConnectionThread
(int socketDescriptor,
QObject *parent
);
~ConnectionThread();
void run();
...
signals:
void sendPFdata
(QHash pfdata
);
...
#include <QtCore>
class ConnectionThread : public QThread {
Q_OBJECT
public:
ConnectionThread(int socketDescriptor, QObject *parent);
~ConnectionThread();
void run();
void sendReply(QString reply);
...
signals:
void error(QTcpSocket::SocketError socketError);
void sendPFdata(QHash pfdata);
...
To copy to clipboard, switch view to plain text mode
Resulting error message:
error: `QHash' was not declared in this scope
Chaning it to a QString allows it to compile, but naturally won't "work" (since I need to pass the hash, not a string). I suppose if it comes down to it I will use a QString and turn it into a hash on the other end but I'd rather not.
Bookmarks