Qt多语言----QObject::tr()

tr()函数的参数只要是char*类型便可。web QString strTest = "测试"; QByteArray byteArray = strTest.toLatin1(); char * ch = byteArray.data(); this->setWindowTitle(QObject::tr(ch));
相关文章
相关标签/搜索