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

QML - letters randomly disappear when resizing label

    XMLWordPrintable

Details

    • Linux/X11, Linux/Yocto, Windows
    • bda75c81f5648a4f1f2d15b4efaf38a03d5f0d64 (qt/qtbase/dev) 46599ec4182191937743d92b58dc0c3e60ccf77f (qt/qtbase/6.2) a948c725e5 (qt/tqtc-qtbase/5.15) a948c725e5 (qt/tqtc-qtbase/5.15-opensource)

    Description

      Hi, I discovered a problem while resizing a text element. At a certain size, one or more random characters from the label disappear. Please see the attached video for the minimal example.

      The code of the minimal example:

       

      import QtQuick 2.11
      import QtQuick.Window 2.11 
      import QtQuick.Controls 2.4
      Window {
        visible: true
        width: 800
        height: 480
        title: qsTr("Hello World")
        Text {
          id: text1
          text: "TEXT"
          renderType: Text.NativeRendering
          x: 50
          y: 50
          font.pointSize: 22 // Happens with both pointSize and pixelSize
        }
        Button {
          id: increase
          y: 400
          x: 400
          text: "INCREASE"
          renderType: Text.NativeRendering
          onClicked: text1.font.pointSize = text1.font.pointSize + 1
        }
        Button {
           id: decrease
           y: 400
           text: "DECREASE"
           onClicked: text1.font.pointSize = text1.font.pointSize - 1
        }
      }
      

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            pohlondrej Ondřej Pohl
            Votes:
            4 Vote for this issue
            Watchers:
            14 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: