Qter 发表于 2018-3-24 21:50:14

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)   //后面没有分号
页: [1]
查看完整版本: QT invalid application of 'sizeof' to incomplete type信号和槽以结构体为参数传...