How to remove specific character from QML string?
Unsolved
QML and Qt Quick
-
Writing a program I encountered a small problem. I would like to remove last character from QML string but I don't see a way to do it. Is this functionality implemented or should I deal with it in my own way?
-
@CuriousPan See https://stackoverflow.com/questions/952924/javascript-chop-slice-trim-off-last-character-in-string
let str = "hello word"; str = str.substring(0, str.length - 1); console.log(str);
OR
let str = "hello word"; str = str.slice(0, -1); console.log(str);