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

QTextEdit/QTextDocument fail to render Emojis on elements with id

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.10.0
    • GUI: Text handling
    • None
    • Linux/X11

      The following code
       

      #include <QApplication>
      #include <QTextEdit>
      
      int main(int argc, char **argv)
      {
          QApplication a(argc, argv);
      
          QTextEdit te;
          te.show();
      
          te.document()->setHtml("<html><h1 id=\"something\">🧭 Main points in summary</h1><h1>🧭 Main points in summary</h1></html>");
      
          return a.exec();
      }
       

       
      renders like

       

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

            esabraha Eskil Abrahamsen Blomfeldt
            tsdgeos Albert Astals Cid
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There is 1 open Gerrit change