Thanks, that did it. Just had to remove ui-> from line 7. of your post.
The below works perfect. I would like to know if anyone out there had any other ways of doing this.
testLabels << ui->label_27 << ui->label_28 << ui->label_29 << ui->label_30;
for (int x = 0; x < 4; x++)
{
setOutput(db0, 0x48, db1, testOuts[x]);
testLabels[x]->setPixmap(stat_sBy);
}
QList< QLabel * > testLabels;
testLabels << ui->label_27 << ui->label_28 << ui->label_29 << ui->label_30;
for (int x = 0; x < 4; x++)
{
setOutput(db0, 0x48, db1, testOuts[x]);
testLabels[x]->setPixmap(stat_sBy);
}
To copy to clipboard, switch view to plain text mode
Bookmarks