How can I set up my labels
to be in an array to be called on later? I can't seem to get a hand on what type labels
is in order to pull this off.
What I have is this, however this would be rather ugly to maintain. If I could change this
ui->label_11->setVisible(false);
ui->label_5->setVisible(false);
ui->label_12->setVisible(false);
ui->label_44->setVisible(false);
ui->label_43->setVisible(false);
ui->label_9->setVisible(false);
ui->label_10->setVisible(false);
ui->label_42->setVisible(false);
to this, it would be most preferable. But, perhaps I'm thinking about this in the wrong way.
SometypeIdoNotKnow values[7] = {ui->label_11,
ui->label_5,
ui->label_12,
ui->label_44,
ui->label_43,
ui->label_9,
ui->label_10,
ui->label_42};
for (int i=0; i <= 7; i++){
values[i]->setVisible(false);
}