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