floor1->setCheckable(1);
//make sure floor1 is properly allocated, are you sure the above new statement is called before this?
if(floor1->isChecked()) //the code is crashing at this line
{
if(this->door11->isChecked())
line.append("Door 11");
}
QCheckBox *floor1 = new QCheckBox("Floor 1",this);
floor1->setCheckable(1);
//make sure floor1 is properly allocated, are you sure the above new statement is called before this?
if(floor1->isChecked()) //the code is crashing at this line
{
if(this->door11->isChecked())
line.append("Door 11");
}
To copy to clipboard, switch view to plain text mode
Bookmarks