绑定普通的变量
checkBox->setProperty(“index”,i);
获取变量
checkBox->property(“index”).toInt();
特殊变量,结构体等
1先注册类型
2查询数据库,得到记录
绑定值
checkBox->setProperty(“record”,QVariant::fromValue(recordList.at(i)));
获取值
QSqlRecord record=check->property(“record”).value();