摘要: 在Qt项目开发中,经常会碰到自定义结构体和字符数组之间的转换问题,不妨假设结构体名字为custom_struct, 字符数组名字为array_data 1. QByteArray转换为自定义结构体 custom_struct *struct_data = reinterpret_cast<custo 阅读全文
posted @ 2021-09-07 11:47 大力的成长 阅读(2518) 评论(0) 推荐(0)