Important: Please read the Qt Code of Conduct -

Empty translation results in sourceText using qsTranslate

  • I'm using qm for translation. If a translation value is intentionally empty, qsTranslate treats it as invalid translation and returns the sourceText.

    For instance, if I have this in the ts file:


    qsTranslate(context, 'note_txt.value') returns 'note_txt.value' instead of ''.

    Is there a way to specify an empty translation string?

Log in to reply