[Interest] Find UI elements by name and get type of UI element
Tamás Nagy
tamas.nagy.001 at gmail.com
Thu Apr 2 16:42:05 CEST 2015
Hi,
I have a Qt Creator UI. There are buttons and other things on it.
I read a list from a file with widget names, and there are booleans: 0
- not toggled, 1 - toggled,
or other widget specific parameters.
I would like to update my UI, based on this list.
QWidget widget = ui->centralWidget->findChild(qName,
Qt::FindChildrenRecursively);
// get type of widget, but how?
I can get the widget, but how to decide it's type?
If it is a button or a numeric up/down (to set upper and lower limits)...?
Tamas
More information about the Interest
mailing list