Details
-
Bug
-
Resolution: Won't Do
-
P3: Somewhat important
-
None
-
5.1.1
-
None
-
vs2012/win7/x86 and gcc/centos6.4/x86
Description
most QT objects such as QString and QByteArray have their metatypes declared allowing emitting of them across threads, but not QHostAddress. This appears to be an oversight.
simply adding the following to one of my cpp files fixes this
Q_DECLARE_METATYPE(QHostAddress);
class my_init { public: my_init()
};
static my_init _init;
eg use a signal like the follow and connect and emit across threads
signals:
void test(const QHostAddress& a);