funq icon indicating copy to clipboard operation
funq copied to clipboard

[Question] How I can get children items from a QML Grid or Repeater?

Open rafaeldelucena opened this issue 6 years ago • 4 comments

My application has a grid with id and some QML items inside without ids (some of them are dynamic created) there is a way to get the children elements?

If not, do you have some tips to implement this feature?

I'm already looking at the code and willing to develop this =)

Best regards

rafaeldelucena avatar Mar 06 '18 12:03 rafaeldelucena

I've implemented a children method to QuickItem, to get the children items, but its not good enough specially for nested items.

What do you think will be a better approach? Something like model_items from AbstractItemView and item_by_named_path helper?

rafaeldelucena avatar Mar 06 '18 21:03 rafaeldelucena

I've updated the method to be able to get nested items with recursive parameter here #27

rafaeldelucena avatar Mar 12 '18 14:03 rafaeldelucena

awesome - sorry for being really slow to answer here. I just added a comment in the PR, let's get this merged soon if you plant to use it;

parkouss avatar Jul 09 '18 14:07 parkouss

https://stackoverflow.com/q/32134446/630169

akontsevich avatar Nov 07 '19 17:11 akontsevich