I am dynamically creating check-boxes inside a layout & populating it using a sqlquery. I want to get a list of all the check boxes checked by the user. I know that check-boxes have a checked property. but how do I get a list of all the check-boxes created dynamically?
QCheckBox *checkbox = new QCheckBox(QString(query.value(2).toString()),this) ;
checkbox->setStyleSheet("font: MS Shell Dlg 2; font-size: 40px; color: white;");
connect(this->ui->pushButton_2, SIGNAL(clicked()), checkbox, SLOT(deleteLater()));
this->ui->verticalLayout_2->addWidget(checkbox,0,0);
Bookmarks