你这种显然是不能用QDataStream做序列化的。估计你没仔细看过QDataStream说明:The QDataStream class implements the serialization of C++'s basic data types, like char, short, int, char *, etc. Serialization of more complex data is accomplished by breaking up the data into primitive units.你这种非简单类型就自己写个序列化反序列化的不就好了?又不难