07-03-2013 09:55 AM - edited 07-03-2013 10:04 AM
I am working on a project that requires lots of labels and text fields (lets say more than 100). I would like to:
I can do this manually, however is there a way to do this programmatically (i.e. run it through a loop), preferably in QML over C++. Any help will be appreciated.
Solved! Go to Solution.
07-03-2013 10:12 AM
07-03-2013 10:34 AM
07-03-2013 10:50 AM
07-08-2013 05:35 AM
Another option is setting objectNames to follow a particular pattern and iterating item.children, matching objectName to this pattern. If there are multiple levels of containers, they can be processed by calling the same function recursively.
Please also check this thread, it has sample code for different methods of finding child items: