Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-37986

emoji characters displayed in wrong colour in Text element

XMLWordPrintable

    • 3e5a89ae70eb612afef0d593f180a57da17c782f

      emoji characters are displayed in single colour (text colour) in Text element.

      import QtQuick 2.0
       
      Rectangle {
          width: 360
          height: 360
          Text {
              id: myText
              text:"\uD83D\uDE1C\uD83D\uDE17\uD83D\uDE0A\uD83D\uDE1C\uD83D\uDE1D\uD83D\uDE1D\uD83D\uDE09"
              renderType: Text.NativeRendering
              anchors.centerIn: parent
              onTextChanged: {
                  console.log(text);
              }
          }
          MouseArea {
              anchors.fill: parent
              onClicked: {
                  myText.text = "\u2601\ud83d\ude32";
              }
          }
      }
      

      The console log on QtCreator actually shows the emoji in the correct colour

        For Gerrit Dashboard: QTBUG-37986
        # Subject Branch Project Status CR V

            efidler Eli Fidler
            prasanth_u Prasanth Ullattil
            Votes:
            9 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes