Quote Originally Posted by jpn View Post
However, the first method suggested by Wysota works perfectly.
So this will work as well:
Qt Code:
  1. QString str="173562";
  2. QChar *dat = str.data();
  3. qSwap(dat[1], dat[2]);
To copy to clipboard, switch view to plain text mode