Id's that share names
-
Lets say I have the following code:
Item { id: foo Rectangle { id: red } } Item { id: bar Rectangle { id: red } }how is this shared id resolved? I am wondering if I can use the same id for in different places as it would be convenient for me but I don't want them to try to reference one another and I don't want to get the compiler confused. It seems as thought I am allowed to do it but perhaps I shouldn't?
-
Lets say I have the following code:
Item { id: foo Rectangle { id: red } } Item { id: bar Rectangle { id: red } }how is this shared id resolved? I am wondering if I can use the same id for in different places as it would be convenient for me but I don't want them to try to reference one another and I don't want to get the compiler confused. It seems as thought I am allowed to do it but perhaps I shouldn't?