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

Recursive qml item lookup #115

Open
dmurashko-ms opened this issue May 15, 2024 · 1 comment
Open

Recursive qml item lookup #115

dmurashko-ms opened this issue May 15, 2024 · 1 comment

Comments

@dmurashko-ms
Copy link

On the large project, it's hard to maintain a consistent object name path. There are a lot of dynamic elements, and there is also potential for a lot of refactoring to be done on the Items hierarchy.
For this reason, it would be helpful to have a recursive approach. For example, we could add a parameter or create a separate method like "getStringPropertyRecursive" to work with QML items and their unique object names recursively.

@ctmbl
Copy link
Contributor

ctmbl commented May 28, 2024

Hi @dmurashko-ms
I'm not sure I understood your request correctly but Spix already look recursively for QML items' name
see README

Spix matches children recursivley, allowing as much flexibility as needed:

It's also a bad habit to use Spix with full path name, because of breakages in case of refactoring as you already mentioned

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

No branches or pull requests

2 participants