Problem with status in QML
-
@
//email field
Image
{
id: line1
source: "../Biologia/Configurazione/linea.png"
sourceSize.height: 50
sourceSize.width: 700
anchors.left: finestraPrincipale.left
anchors.top: finestraPrincipale.top
anchors.margins: 100Text { text: "E-mail" anchors.verticalCenter: line1.verticalCenter anchors.left: line1.left anchors.leftMargin: 10 font.bold: true color: "white" } } Image { id: piuomeno1 source: "../Biologia/Configurazione/piu.png" height: 20 width: 20 anchors.verticalCenter: line1.verticalCenter anchors.left: line1.right anchors.leftMargin: 10 MouseArea { anchors.fill: piuomeno1 onClicked: spesso1.state = spesso1.state == "reduced" ? "maximized" : "reduced" } } Image { id: spesso1 source: "../Biologia/Configurazione/spesso.png" sourceSize.width: 330 sourceSize.height: 100 anchors.top: line1.bottom anchors.right: line1.right state: "reduced" Column { id: colonna spacing: 12 anchors.left: spesso1.left anchors.top: spesso1.top anchors.margins: 18 Row { spacing: 67 Text { color: "white" text: "E-mail:" } Rectangle { width: 150 height: 20 TextInput { activeFocusOnPress: true anchors.fill: parent text: emailGiàInserita MouseArea { anchors.fill: parent onClicked: parent.text = parent.text == emailGiàInserita ? "" : parent.text } } } } Row { spacing: 50 Text { text: "Password:" color: "white" } Rectangle { width: 150 height: 20 TextInput { activeFocusOnPress: true anchors.fill: parent text: "" echoMode: TextInput.Password } } } } } //END email field //impostazioni generali Image { id: line2 source: "../Biologia/Configurazione/linea.png" sourceSize.height: 50 sourceSize.width: 700 anchors.horizontalCenter: line1.horizontalCenter anchors.top: spesso1.bottom Text { text: "Impostazioni generali" anchors.verticalCenter: line2.verticalCenter anchors.left: line2.left anchors.leftMargin: 10 font.bold: true color: "white" } } Image { id: piuomeno2 source: "../Biologia/Configurazione/piu.png" height: 20 width: 20 anchors.verticalCenter: line2.verticalCenter anchors.left: line2.right anchors.leftMargin: 10 MouseArea { anchors.fill: piuomeno2 onClicked: spesso2.state = spesso2.state == "reduced" ? "maximized" : "reduced" } } Image { id: spesso2 source: "../Biologia/Configurazione/spesso.png" sourceSize.width: 370 sourceSize.height: 60 anchors.top: line2.bottom anchors.right: line2.right state: "reduced" SCheckBox { id: ckbx testo: "Sto usando un PC" isChecked: pCinUso visible: true anchors.verticalCenter: spesso2.verticalCenter anchors.left: spesso2.left anchors.leftMar
@
[[Fixed code markup, but looks like this post is incomplete. Tobias]]