i got two `Windows` inside the same .qml file.

Window1 has a `textinput1` and a `button`, and when I press the `button`, i'd like to send the string value from that `textinput` to the `Window2` `textInput2`.

I'm new to Qt and QML, been reading a lot on `signals`, `Loaders`, `properties` and can't materialize this kind of transfer. Can anyone do a simple 10-line example of such transfer please?

```
 Window {

        id:window

        TextInput {
            id:text1
            text: "This value is needed in the second Window!"        
        }

        Button {
            onClicked: window2.open()
        }

    Window {
        id.window2

        function open(){
            visible = true
        }            
        Text {
            text: text1.text
        }        
    }
}

```

If I do this it gives me `ReferenceError: text1 is not defined`, how can I reference the `text1` from the first `Window`?