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

QTextEdit/QTextDocument fail to render Emojis on elements with id

XMLWordPrintable

    • Linux/X11
    • f9b831062 (dev), cc5e793ea (6.10)

      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

       

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes