ok how do i turn this...
into thisCode:ui->label_2->setVisible(true);
ui->label_3->setVisible(false);
ui->label_4->setVisible(true);
ui->label_5->setVisible(false);
ui->label_6->setVisible(true);
ui->label_7->setVisible(false);
ui->label_8->setVisible(true);
ui->label_9->setVisible(false);
ui->label_10->setVisible(true);
ui->label_11->setVisible(false);
ui->label_12->setVisible(true);
ui->label_13->setVisible(false);
ui->label_14->setVisible(true);
ui->label_15->setVisible(false);
need to have the name ("label_" + X)everything i know i tried, i have 641 lables that change states and i dont want to have to "manualy" switch each onebeing able to make a function for it would be the best!ThanksCode:for (x=0;x<16;x++)
{
ui->label_(X)->setVisible(true);
ui->label_(X+1)->setVisible(false);
}