You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi dear @faaxm
Thanks for creation of this useful and beautiful thing. ❤️ 👍 🌹
How to find items by a unique object name.
It is really hard to access to an item by its full path. ("mainWidnow/mainView/rightSide/setting")
I have some items that are creating by another ones in runtime Unpredictably and they don't have any predefined area.
I don't now to handle some situations like this.
But if there is a way to access qml items by unique object name i think this problem will be solved easily.
The text was updated successfully, but these errors were encountered:
Hi @mmjvox ,
spix is actually not so picky about the correct path and it can still find an item even if you skip some components in the path.
I.e. as long as there is no ambiguity, mainWindow/setting should lead to the same item as mainWindow/mainView/rightSide/setting. This is probably something that should be documented better... 😅
Basically spix just goes through all child items and looks for one that has the name of the next path component, but it will actually also search through the children of the child items until something is found with the right name...
The code that recursively resolves the path is here:
Hi dear @faaxm
Thanks for creation of this useful and beautiful thing. ❤️ 👍 🌹
How to find items by a unique object name.
It is really hard to access to an item by its full path. ("
mainWidnow/mainView/rightSide/setting
")I have some items that are creating by another ones in runtime Unpredictably and they don't have any predefined area.
I don't now to handle some situations like this.
But if there is a way to access qml items by unique object name i think this problem will be solved easily.
The text was updated successfully, but these errors were encountered: