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

setExtraSelections with QTextFormat::FullWidthSelection makes preedit text difficult to read

    XMLWordPrintable

Details

    Description

      input method (or input method handler) specifies look and feel for preedit text and it is usually the combination of highlight background color and highlighted text color. see the textedit.png attached that I took a screenshot of examples/richtext/textedit.

      When extra format with QTextFormat::FullWidthSelection is set through QTextEdit::setExtraSelections, the background color input method set is ignored. Then the highlighted text colored text is difficult to read. see the codeeditor.png attached.

      How to reproduce the issue
      1. run the example qtbase/examples/widgets/widgets/codeeditor/
      2. turn (Japanese) input method on
      3. input something
      4. press space to convert it to something else

      Attachments

        1. codeeditor_jpn_input_test_qt530.png
          codeeditor_jpn_input_test_qt530.png
          13 kB
        2. codeeditor.png
          codeeditor.png
          9 kB
        3. textedit.png
          textedit.png
          130 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            tasuku.suzuki Tasuku Suzuki
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes