一杯清酒邀明月
天下本无事,庸人扰之而烦耳。

//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;

posted on 2020-01-09 09:19  一杯清酒邀明月  阅读(7726)  评论(0编辑  收藏  举报