|

楼主 |
发表于 2024-5-29 09:15:21
|
显示全部楼层
请问为什么我用Pyside6的Ui转Py后,按钮的文本变为不是汉字了 ,请问需要怎么解决?
def retranslateUi(self):
self.setWindowTitle(QCoreApplication.translate("self", u"main", None))
# if QT_CONFIG(tooltip)
self.pushButton.setToolTip(
QCoreApplication.translate("self", u"\u8bf7\u5f55\u5165\u201c\u6c47\u603b\u8868\u201d\u4e2d", None))
# endif // QT_CONFIG(tooltip)
self.pushButton.setText(
QCoreApplication.translate("self", u"\u56fa\u5b9a\u8d44\u4ea7\u7ba1\u7406\u7cfb\u7edf", None))
# if QT_CONFIG(tooltip)
self.pushButton_2.setToolTip(
QCoreApplication.translate("self", u"\u8bf7\u5f55\u5165\u201c\u6c47\u603b\u8868\u201d\u4e2d", None))
# endif // QT_CONFIG(tooltip)
self.pushButton_2.setText(
QCoreApplication.translate("self", u"\u4eba\u529b\u8d44\u6e90\u7ba1\u7406\u7cfb\u7edf", None))
self.label.setText(QCoreApplication.translate("self", u"\u7ba1\u7406\u7cfb\u7edf\u9009\u62e9", None))
# if QT_CONFIG(tooltip)
self.exit_button.setToolTip(
QCoreApplication.translate("self", u"\u8bf7\u5f55\u5165\u201c\u6c47\u603b\u8868\u201d\u4e2d", None))
# endif // QT_CONFIG(tooltip)
self.exit_button.setText(QCoreApplication.translate("self", u"\u9000\u51fa", None))
# retranslateUi |
|