//unsiged char *转QString
unsigned char *str = "fdd" ;
char *str1 = (char *)str;
QString str2 = QString(QLatin1String(str1));
//QString 转化成char *
QString str = "fdd";
QByteArray ba = str.toLatin1();
unsigned char * str1 = (unsigned char *)ba.data;