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.

Qt Code:
  1. QList< QLabel * > testLabels;
  2. testLabels << ui->label_27 << ui->label_28 << ui->label_29 << ui->label_30;
  3.  
  4. for (int x = 0; x < 4; x++)
  5. {
  6. setOutput(db0, 0x48, db1, testOuts[x]);
  7. testLabels[x]->setPixmap(stat_sBy);
  8. }
To copy to clipboard, switch view to plain text mode