在QT Linguistic中避免使用新的线条字符

时间:2017-05-31 10:54:02

标签: c++ qt qt4

如何制作" \ n"字符串转换为Qt语言的新行字符。翻译不起作用。

QString com = "Communication & \n Speech";

QLabel *Heading = new QLabel();

Heading.setText(QLabel::tr(com));


japanese_jn.ts

     <message>
        <source>Communication &amp; \n Speech</source>
        <translation>コミュニケーションとスピーチ</translation>
    </message>

0 个答案:

没有答案