How do I use emoji color in Qt 5.7.0?

On Windows with Qt 5.7.0.

I tried the "Emoji One Color" font, for example:

QFontDatabase::addApplicationFont(":/Fonts/EmojiOneColor.ttf");

QFont font("EmojiOne Color");
ui.textEdit->setFont(font);

      

Copy the "😀😃😄😁" from getemoji.com and paste them into the QTextEdit widget, it still displays black and white Emoji.

How can I use emoji color in Qt 5.7.0?

+3


source to share





All Articles