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

QML - letters randomly disappear when resizing label

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.11.3, 5.15.1
    • Fix Version/s: None
    • Component/s: Quick: 2D Renderer
    • Labels:
      None
    • Environment:
      Virtual (VMWare) Ubuntu x64 18.04 @XFCE, gcc 7.5.0, Ubuntu x64 20.04 @ Gnome, gcc 9.3.0 -- or -- TI AM335x running Yocto "thud"
    • Platform/s:
      Linux/X11, Linux/Yocto, Windows

      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

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            pohlondrej Ondřej Pohl
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes