I have a QPushButton (same problem for all widgets) that I set the text to a Japanese (or any other Non-Latin unicode) string and the button is blank.

I have tried directly setting the text, using codecs, and directly entering the hex value with no luck. If I try a European or Latin based string, the the text shows without any problem. I have checked and I do have the fonts for the Non-Latin strings on my PC and the characters show up correctly every single time regardless of what string I use when outputting to the console via qDebug().

Does anyone know how to solve this problem?

I am on Ubuntu 10.04 and am using Qt 4.7.1

UPDATE: Apparently Qt is not able to find the fonts on my machine and insists on using its own. Creating a symbolic link to a font that supports Japanese characters in the "[QtDir]/lib/fonts" folder solved the problem.

I am using QVFb, perhaps this has something to do with it.

]]>https://forum.qt.io/topic/6919/solved-non-latin-unicode-strings-not-showingRSS for NodeSat, 25 May 2019 12:59:47 GMTWed, 22 Jun 2011 22:20:08 GMT60I have a QPushButton (same problem for all widgets) that I set the text to a Japanese (or any other Non-Latin unicode) string and the button is blank.

I have tried directly setting the text, using codecs, and directly entering the hex value with no luck. If I try a European or Latin based string, the the text shows without any problem. I have checked and I do have the fonts for the Non-Latin strings on my PC and the characters show up correctly every single time regardless of what string I use when outputting to the console via qDebug().

Does anyone know how to solve this problem?

I am on Ubuntu 10.04 and am using Qt 4.7.1

UPDATE: Apparently Qt is not able to find the fonts on my machine and insists on using its own. Creating a symbolic link to a font that supports Japanese characters in the "[QtDir]/lib/fonts" folder solved the problem.

I am using QVFb, perhaps this has something to do with it.

]]>https://forum.qt.io/post/6919https://forum.qt.io/post/6919Wed, 22 Jun 2011 22:20:08 GMT[quote author="rufus359" date="1308781208"]UPDATE: Apparently Qt is not able to find the fonts on my machine and insists on using its own. Creating a symbolic link to a font that supports Japanese characters in the "[QtDir]/lib/fonts" folder solved the problem.[/quote]