for(int i = 0;i<S.size();i++)A[i] = S[i] - '0';
int Arr[13];QString Str = "123 Hello 465";for (int i = 0; i < Str.size(); i++) Arr[i] = Str[i].digitValue();