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

Selecting italic text in TextInput, characters are cut

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.4.0
    • 5.1.1, 5.2.0 Alpha
    • None
    • Windows 7, Ubuntu 14.04 LTS
    • b0783c21fb54b939f07ddf5658cc51113b8014e6

      Run the following code. Attached is the image of how it looks.

      import QtQuick 2.0
      
      Rectangle {
          width: 200
          height: 200
          TextInput {
              id: text
              anchors.left: parent.left
              font.italic: true
              font.pointSize: 36
              text : "+477"
      
          }
          TextInput {
              id: text2
              anchors.top: text.bottom
              font.italic: true
              font.pointSize: 36
              text : "+477"
      
          }
          Component.onCompleted:  {
              text.select(2,3);
          }
      }
      

        1. text cut.png
          19 kB
          Qt Support
        2. Qt5.4.png
          43 kB
          Samuel Nevala
        3. Qt5.3.1.png
          58 kB
          Samuel Nevala
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            esabraha Eskil Abrahamsen Blomfeldt
            qtcomsupport Qt Support
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes