QString item1 = QString::fromStdString(groupParam->getChild(k)->getName());QStandardItem* itemProject = new QStandardItem(item1);//设置树形控件子项的属性itemProject->setFlags(Qt::ItemIsUserCheckable | Qt::ItemIsEnabled | Qt::ItemIsSelectable);//初始状态没有被选中itemProject->setCheckState(Qt::Unchecked);