QT 给结构体内的元素赋值 声明结构体 模拟获取信息 结果展示 声明结构体 //模拟数据结构 typedef struct _USER { int id; QString userName; QString passWord; int sex; } USER; 模拟获取信息