QML ListElement with translation
hi,
i need to create a ListModel that include translation text.
i want to use qsTr() in the element, but i get the error:
“ListElement: cannot use script for property value”
this is the code:
- ListModel
- {
- ListElement
- {
- image:"a.png"
- text: qsTr("Text 0")
- }
- ListElement
- {
- image:"b.png"
- text: qsTr("Text 1")
- }
- }
how can i solve this problem using the ListModel of qml
tnx
4 replies
Take a look here [developer.qt.nokia.com]
You must log in to post a reply. Not a member yet? Register here!
