Qt Code:
  1. for (int i = 0;i < 80; i++){
  2. for (int j = 0;j < 20; j++){
  3. if (random_pos_value[j].first == i){
  4. tiles[i]->setText(QString::number(random_pos_value[j].second));
  5. tiles[i]->setReadOnly(true);
  6. }
  7. }
  8. }
To copy to clipboard, switch view to plain text mode 

Think about this loop. The innermost part of it runs 3200 times. Is that what you want to do?