需要在字符串前添加 QString::fromUtf8
例:
b2 = new QPushButton(this); b2->setText(QString::fromUtf8("变化")); b2->move(200,100);
需要在字符串前添加 QString::fromUtf8
例:
b2 = new QPushButton(this); b2->setText(QString::fromUtf8("变化")); b2->move(200,100);
转载于:https://www.cnblogs.com/zhaihongliangblogger/p/7760260.html