装修上什么网站比较好,网站设计问题,怎么通过局域网建设网站,芬兰网站后缀问题#xff1a;在designer中设计UI#xff0c;我从其他ui文件copy了部分控件#xff0c;新ui文件重新编译生成后#xff0c;setText#xff08;#xff09;并没有出现在新文件的retranslateUi()函数中#xff0c;导致多语言切换不生效。 void retranslateUi(QWidget * …问题在designer中设计UI我从其他ui文件copy了部分控件新ui文件重新编译生成后setText并没有出现在新文件的retranslateUi()函数中导致多语言切换不生效。 void retranslateUi(QWidget * LocalFile){Q_UNUSED(LocalFile);} // retranslateUi
解决 1在designer中使用图中所示按钮还原text一定要用该按钮还原再重新输入文本 该操作对应到ui文件中的变化 修改前 property nametextstring notrtrueNo downloaded/string/property修改后 property nametextstringNo downloaded/string/property2重新编译retranslateUi()中出现 void retranslateUi(QWidget * LocalFile){labelEmptyInfo-setText(QApplication::translate(LocalFile, No downloaded, nullptr));Q_UNUSED(LocalFile);} // retranslateUi问题解决。