vendredi 22 mai 2015

How I can dropdown options when I check on checkbox?

I have one checkbox with onCheckedChanged handler and what I want is, when the checkbox is checked, dropdown a menu with several text and text fields. I have this now:

CheckBox { 
        id: box
        onCheckedChanged: {
             // TODO here to dropdown a menu with settings
        }
}

I have text and text fields like this:

Component {
    id: label

    Text {
        color: "red"
        antialiasing: true
        smooth: true
    }
}

I'm newbie in QML, please be patient




Aucun commentaire:

Enregistrer un commentaire