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

TextEdit selection highlighting works incorrect for some cyrillic symbols

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 5.5.1
    • 5.4.1, 5.4.2, 5.5.0
    • GUI: Text handling
    • None
    • Kubuntu, Windows 7
    • c318fceaccb1ee23a567f1bb032df45417217e09

      It's very simple to reproduce. Just place that on window:

      TextEdit {
      	selectByMouse: true
      	x: 160
      	y: 101
      	text: "Да, но как же"
      	readOnly: true
      }
      
      TextEdit {
      	selectByMouse: true
      	x: 160
      	y: 131
      	text: "Держи в уме"
      	readOnly: true
      }
      

      And try to select all that text using mouse. I've attached the result.
      text property contains words "Yes, but how" in russian, using cyrillic symbols. And something goes wrong with word "but" ("но") in 5.4.1, 5.4.2.

      Second text edit contains "Держи в уме" ("Keep in mind" in Eniglish). That's a bit funny, but first text edit highlights text just fine in the latest 5.5.0, but this text edit shows the same error for letter "в" ("in").

      I've also attached tiny project for that bug.

        1. odd selection.png
          12 kB
          danclax
        2. wrong_selection.tar.bz2
          1 kB
          danclax
        3. odd selection 5.5.0.png
          16 kB
          danclax
        4. wrong_selection_5.5.0.tar.bz2
          1 kB
          danclax
        For Gerrit Dashboard: QTBUG-46829
        # Subject Branch Project Status CR V

            esabraha Eskil Abrahamsen Blomfeldt
            danclax danclax
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes