C++ (Qt)class ....{...private: QList<QLabel *> m_labels;};
C++ (Qt)for (int i = 0; i < 20; ++i) { QLabel *label = new QLabel("My Label", this); // add label to layout, etc m_labels.append(label);}
C++ (Qt)for (int i = 0; i < 10; ++i) m_labels.at(i)->hide();
C++ (Qt)for(int i=0;i<10;i++){label[i]=new Label;label[i]->setVisible();}