Unable to insert integer in QString : I have a QString **strLayout** which has value `"3,1,0"`.

I want to change it to "**2,1,0**".

So I extracted the first character, converted to number and subtracted 1 from it:

    int temp = (strLayout.at(0).digitValue() - 1);

Now, I want it to write back to original QString strLayout, but not able to do it.

Thanks in advance!

