try arr[i]->show(); after/before adding to layout.