I'm writing settings with qml Settings
Settings {
id: powerTuneSettings
property alias serialPortName: serialName.currentText
}
Saving works but when programm starts the settings gets overwriten by first entry in the model:
ComboBox {
id: serialName
width: 200
model: Serial.portsNames
}
How can I initialize the combobox with the model and set it to the stored setting?