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

Support finding children in ListView & GridView #3

Closed
wants to merge 2 commits into from

Conversation

LubosD
Copy link
Contributor

@LubosD LubosD commented Jul 17, 2019

This PR also contains changes from #2, otherwise you'd have a merge conflict.

@faaxm
Copy link
Owner

faaxm commented Jul 22, 2019

Could you add a basic example to Spix that shows its usage with ListView & GridView? It could be something really basic (like query the .text property of an item in the views and print it to the ResultView from the basic example)?

I hope to eventually run the examples that come with Spix on the build server and use them as smoketests. Especially to test Spix against different versions of Qt, so it would be great if all main features are somewhat represented in the examples.

@faaxm
Copy link
Owner

faaxm commented Jul 30, 2019

Thank you for looking into this. While adding examples, I realised that itemAtIndex(...) is only supported by ListViews in Qt 5.13 or later. I decided to look for an alternate implementation and implemented one in commit be430a9
Could you have a look if this also works for your usecase?

As a bonus, with these changes, it is no longer required to explicitly mention the repeater/listView/gridView object in the ItemPath.

@faaxm faaxm closed this Jul 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants