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

qwebpage font color had changed when input chinese when setContentEditable(true)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.4.0, 5.5.1
    • WebKit
    • None

      I set the css to qwebview , but when i changed inputMethod to chinese ,the font color auto change to black. The english is normal. I have upload the small example in the attachment.

      QWebView *m_webView = new QWebView;
      m_webView->page()->mainFrame()->setHtml(QString("<html><head></head><body  style=\"color:%1; font-Size:%2pt; word-wrap:break-word;x-overflow:hidden;\"></body></html>").arg("#ff0000").arg("12"));
      m_webView->page()->setContentEditable(true);
      

        1. chinese.png
          chinese.png
          3 kB
        2. english.png
          english.png
          5 kB
        3. QTBUG-49074.tar.gz
          1 kB
        4. qwebviewExample.rar
          3 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            annulen Konstantin Tokarev
            wuhongrui wuhongrui
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes