firemail
标题:
QT invalid application of 'sizeof' to incomplete type信号和槽以结构体为参数传...
[打印本页]
作者:
Qter
时间:
2018-3-24 21:50
标题:
QT invalid application of 'sizeof' to incomplete type信号和槽以结构体为参数传...
信号和槽以结构体为参数传递复杂数据
struct DataStruct
{
QByteArray DstAddr;
QByteArray ClusterId;
int DstEndpoint;
int DeviceEndpoint;
int CommandID;
QByteArray AttributeID;
int DataType;
};
Q_DECLARE_METATYPE(DataStruct) //后面没有分号
复制代码
欢迎光临 firemail (http://firemail.wang:8088/)
Powered by Discuz! X3