Is it possible to create a signal for when a QTreeWidgetItem checkbox is toggled?
问题 I've created a checkbox that's also a QTreeWidgetItem using the code below. //Populate list QTreeWidgetItem *program = createCheckedTreeItem(QString::fromStdString(itr->first), true); treePrograms->addTopLevelItem(program); QTreeWidgetItem* ConfigDialog::createCheckedTreeItem(QString name,bool checkBoxState) { QTreeWidgetItem *item = new QTreeWidgetItem(QStringList(name)); item->setFlags(item->flags()|Qt::ItemIsUserCheckable); if (checkBoxState) { item->setCheckState(0,Qt::Unchecked); } else