http://blog.csdn.net/xgbing/article/details/7771898
QByteArray与QString之间的转换:
示例:
QByteArray cstr("abcd");
QString s = cstr;
QByteArray cstr("abcd");
QString s;
s.prepend(cstr);
QString s("hello");
QByteArray cstr = s.toAscii();
QString s("hello");
QByteArray cstr = s.toLatin1();
###################################
http://www.cnblogs.com/li-hao/archive/2011/11/05/2237052.html