Qt application shows emoji instead of unicode character

I am currently developing an application with Qt. I'm using macOS Sierra as my development and testing environment, but the application is cross-platform.

So here's the issue. I am creating a Qt Quick Text item where I set the following property text: "u2139" , in order to show the information icon. The font family I'm using is Open Sans.

Upon running the application, I was surprised to see the following on the place where my unicode character should come:

That's not what I wanted, I wanted the text presentation of that unicode character, not the emoji presentation. How can I force the text presentation to be shown (on all platforms)?

Thanks.


链接地址: http://www.djcxy.com/p/85242.html

上一篇: 将NSTextField绑定到NSString

下一篇: Qt应用程序显示emoji而不是unicode字符