09-28-2012 07:27 PM
Hello all, just adapting to the change in beta3, in beta 2 I was able to store text in a property variant and then assign the text of a TextArea this variant in the form:
property variant greeting: "hello"
TextArea{
text: greeting
}
this now gives an error type mismatch, expecting QString, found null. What alternative could I explore for this issue?
Thanks all.
09-28-2012 07:53 PM
09-29-2012 01:11 AM
Hi,
Try this
Page {
property variant greeting: "hello"
content: TextArea {
text: qsTr(greeting)
}
}or
Page {
property string greeting: "hello"
content: TextArea {
text: greeting
}
}