Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How can I use color emoji in Qt 5.7.0?
Forum Updated to NodeBB v4.3 + New Features

How can I use color emoji in Qt 5.7.0?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 1.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Aman Jiang
    wrote on last edited by
    #1

    On Windows, with Qt 5.7.0.

    I tried "Emoji One Color" font, like this:

    QFontDatabase::addApplicationFont(":/Fonts/EmojiOneColor.ttf");
    
    QFont font("EmojiOne Color");
    ui.textEdit->setFont(font);
    

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

    How can I use color emoji in Qt 5.7.0 ?

    jsulmJ 1 Reply Last reply
    0
    • A Aman Jiang

      On Windows, with Qt 5.7.0.

      I tried "Emoji One Color" font, like this:

      QFontDatabase::addApplicationFont(":/Fonts/EmojiOneColor.ttf");
      
      QFont font("EmojiOne Color");
      ui.textEdit->setFont(font);
      

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

      How can I use color emoji in Qt 5.7.0 ?

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Aman-Jiang I guess you need to change the font color.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved