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

Text element changes size upon reload

    XMLWordPrintable

Details

    Description

      Start running the code below fresh in qmlviewer, then press Ctrl+R to reload the code and
      note how the text is drawn a few pixels wider than it was initially.

      import Qt 4.7
      
      Rectangle {
          width: 640; height: 480;
          Rectangle {
              x: 200; y: 200
              width: 300; height: 100
              color: "blue"
              Text { text: "This side up"; anchors.centerIn: parent; color: "white" }
          }
      }
      

      Attachments

        1. snapshot1.png
          snapshot1.png
          3 kB
        2. snapshot2.png
          snapshot2.png
          3 kB
        3. ttf-dejavu.zip
          4.28 MB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            mathiasm Mathias Malmqvist
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes