Quote Originally Posted by lni View Post
I did QObject::tr( text ), and if text is already a Chinese character, it didn't work. I remove QObject::tr and it works.
But that means that something with your translation file is not correct, because tr() returns the same string if no translation is found. What does a qWarning() << QObject::tr( text );? If it displays "" then your problem is in that (=translation file/system) not in the painter.

How can I take care bother cases?
Before that, better investigate some time in the tr() misbehavior of yours.