Qt Tips
最後の一文字を取り出す
str.slice(-1)
または
str.substr(-1)
substring()はマイナスを渡せない。
最後の一文字を除いた文字列を取り出す
str.slice(0,-1)