Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // m_widget->dumpObjectInfo();
- // m_widget->dumpObjectTree();
- QList <QWidget *> objDmp = m_widget->findChildren<QWidget *>();
- foreach (QWidget * w, objDmp)
- {
- qDebug() << w->objectName() << w->metaObject()->className();//w->staticMetaObject.className();
- }
- // List all the form elements that the user might be interacting with
- QList <QPushButton *> buttons = m_widget->findChildren<QPushButton*>();
- foreach(QPushButton * b, buttons)
- qDebug() << b->objectName() << b->isVisible() << b->isEnabled() << b->text();
- QList <QLineEdit *> lineEdits = m_widget->findChildren<QLineEdit*>();
- foreach(QLineEdit * le, lineEdits)
- qDebug() << le->objectName() << le->isVisible() << le->isEnabled() << le->text();
- QList <QComboBox *> comboBoxes = m_widget->findChildren<QComboBox*>();
- foreach(QComboBox * cb, comboBoxes)
- qDebug() << cb->objectName() << cb->isVisible() << cb->isEnabled() << cb->currentText();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement