1.unsigned char *转为QString
unsignned char *ch;
QString str = QString::fromLocal8Bit(reinterpret_cast<const char *>(ch));
2.QString 转为unsigned char *
QString str;
unsigned char *ch= (unsigned char*)qstrdup(str.toLatin1().constData());
3.int 转为QString
int num;
QString::number(num);