2014-05-29 15:03:37 |
David Planella |
description |
I get the following error after adding this snipped to a simple app:
ListModel {
id: temperatureUnitsSelectorModel
ListElement { name: "celsiusOption"; label: i18n.tr("Celsius"); }
ListElement { name: "fahrenheitOption"; label: "Fahrenheit"; }
}
ListElement: cannot use script for property value
It seems that i18n.tr() cannot be applied to ListElement labels |
I get the following error after adding this snipped to a simple app:
ListModel {
id: temperatureUnitsSelectorModel
ListElement { name: "celsiusOption"; label: i18n.tr("Celsius"); }
ListElement { name: "fahrenheitOption"; label: "Fahrenheit"; }
}
ListElement: cannot use script for property value
It seems that i18n.tr() cannot be applied to ListElement labels |
|