一行代码即可解决: unsigned char words[] = "HELLO WORLD"; QString str = reinterpret_cast<char *>(words); qDebug() << str; 输出如下: