Reply
Thread Tools
Posts: 180 | Thanked: 76 times | Joined on May 2010
#171
You can also do it this way.

PHP Code:
//Get all QLabels that are children of this QObject
QList<QLabel *> allLabels findChildren<QLabel *>();

foreach (
QLabel *labelallLabels)
    
label->setText("Text"); 
 

The Following 3 Users Say Thank You to Diph For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 01:36.