Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Need assistance from QT programmer

    Reply
    Page 18 of 18 | Prev | 8   16     17   18 |
    Diph | # 171 | 2010-11-19, 20:17 | Report

    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 *label, allLabels)
        
    label->setText("Text"); 

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 3 Users Say Thank You to Diph For This Useful Post:
    nicolai, sixwheeledbeast, SubCore

     
    Page 18 of 18 | Prev | 8   16     17   18 |
vBulletin® Version 3.8.8
Normal Logout