Hi all!
Is it possible to create a 2D matrix of QLabels like
label1 label2 label3
label4 label5 label6
label7 label8 label9
I also want to set the attribute of each label as
label1.setText("This is label 1");
label2.setText("This is label 2");
I tried declaring the array as
QVector<QVector<QLabel *> labels;
but I’m not too sure how to access it. I read this [qtcentre.org] and this [stackoverflow.com] and so many other links but I’m not able to understand how to get started.
Could somebody please give me a nudge in the right direction? Thank you.
↧