The answer has already been given in a comment, but I want to clearly indicate this.
The first warning uses the wrong condition:
if(QFile::exists("hellotr_la.qm")) qWarning("failed-no file");
It should be:
if(!QFile::exists("hellotr_la.qm")) qWarning("failed-no file");
Since you only saw the second warning, but not the first, the problem is that the file was not found. Make sure the working directory is what you expect from it, or (better) use a resource system, as explained by andref.
Sebastian negraszus
source share