But QObject::findChildren() requires the object names of the widgets for creating references. This is not desirable for my dynamic loading.
Now I have one more question. QUiLoader class must be creating the references to the widgets internally for creating them then y aren't they exposed for us to use. It must be using the DOM model for loading the form. The object names of the widgets are already present in the .ui file then why do I have to give them explicitly in findChildren() and findChild() methods. It should be read from the XML.




Reply With Quote
Bookmarks