Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Unsolved How can I use color emoji in Qt 5.7.0?

    General and Desktop
    2
    2
    921
    Loading More Posts
    • 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
      Aman Jiang last edited by

      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 ?

      jsulm 1 Reply Last reply Reply Quote 0
      • jsulm
        jsulm Lifetime Qt Champion @Aman Jiang last edited by

        @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 Reply Quote 0
        • First post
          Last post