Created
September 28, 2016 12:30
-
-
Save oKcerG/08bb84f59a4d37262a5c486229db3311 to your computer and use it in GitHub Desktop.
Access a descendant of an Item in QML
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function descendant() { | |
var object = arguments[0]; | |
for (var i = 1; i < arguments.length; ++i) | |
object = object.children[arguments[i]]; | |
return object; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment