qt里为什么这个int值是只读怎么改?

qt里结构体里的int值为什么是只读的,怎么改才能让它可以赋值呢?

img

img

将struct player改为类的成员变量试试!

结构体里加上
public: