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

Selecting italic text in TextInput, characters are cut

    XMLWordPrintable

Details

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

    Description

      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);
          }
      }
      

      Attachments

        1. text cut.png
          text cut.png
          19 kB
        2. Qt5.4.png
          Qt5.4.png
          43 kB
        3. Qt5.3.1.png
          Qt5.3.1.png
          58 kB

        Issue Links

          For Gerrit Dashboard: QTBUG-34233
          # Subject Branch Project Status CR V

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes