[Solved] Truncate,trim strings in qml
-
Hi
I need to truncate or trim the first few characters of a string in qml.Does qml supports these functions?
if so how do i do it?Ex:
@
property var string = "Thumb_Image"
@The required output is "Image"
Please help me if anyone knows the best solution
Thanks in Advance
Bala Beemaneni -
That code is actually JavaScript, so you can use the JS API for this: "link":http://www.w3schools.com/jsref/jsref_obj_string.asp.