Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rafaeldelucena opened this issue Mar 6, 2018 · 4 comments
Labels

Comments

@rafaeldelucena
Copy link
Collaborator

rafaeldelucena commented Mar 6, 2018

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 rafaeldelucena changed the title [Question] How I can get children itens from a QML Grid our Repeater? [Question] How I can get children items from a QML Grid our Repeater? Mar 6, 2018
@rafaeldelucena rafaeldelucena changed the title [Question] How I can get children items from a QML Grid our Repeater? [Question] How I can get children items from a QML Grid or Repeater? Mar 6, 2018
@rafaeldelucena
Copy link
Collaborator Author

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
Copy link
Collaborator Author

rafaeldelucena commented Mar 12, 2018

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

@parkouss
Copy link
Owner

parkouss commented Jul 9, 2018

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;

@akontsevich
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants