Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Problem with status in QML
Qt 6.11 is out! See what's new in the release blog

Problem with status in QML

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 943 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    spode
    wrote on last edited by
    #1

    @
    //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: 100

        Text
        {
            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]]

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved