-2
Next, I have 2 Qml files, the first has multiple text Fields that I want to extract the contents and allocate in a python variable then work with this variable in an algorithm and then export the result of this variable in another qml file. Basically, Usuaria enters the data. I work with the data and then I play a response to this data in another part of my app... follows code snippet to facilitate the visualization:
Row {
id: inputRow1
width: 400
height: 30
anchors.top: parent.top
anchors.topMargin: 5
PlusButton{
anchors.left: parent.left
anchors.leftMargin: 0
onClicked: {
if(inputRow3.visible == false){
inputRow2.visible = true
inputRow9.anchors.topMargin = 40
}
}
}
TextFieldBar{
id: playerTfb
text:qsTr("ola")
width: 200
height: 30
anchors.left: parent.left
font.pointSize: 12
anchors.leftMargin: 40
placeholderTextColor: "#92959e"
colorOnFocus: "#a89f62"
colorMouseOver: "#918955"
colorDefault: "#767045"
hoverEnabled: true
placeholderText: "Player Name"
}
TextFieldBar {
id: altTfb
width: 60
height: 30
anchors.left: playerTfb.right
hoverEnabled: true
colorMouseOver: "#918955"
placeholderTextColor: "#92959e"
colorDefault: "#767045"
anchors.leftMargin: 10
colorOnFocus: "#a89f62"
placeholderText: "#Alts"
maxLenghtTfb: 1
horizontalAlignment: Text.AlignHCenter
font.pointSize: 12
}
}