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

fontSizeMode doesn't work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.3.0
    • 5.0.0, 5.0.1, 5.2.0
    • None
    • Tested for Qt 5.0.1 on Windows 7 64b Mingw and Ubuntu 64b gcc and for Qt 5.0.0 on Ubuntu 64b gcc
    • qtdeclarative/stable: d2f21f427fa85ef7b2655b375b7a521a5c4b25c1

    Description

      Using fontSizeMode, text was not fit to item size with simple code :

      import QtQuick 2.0
      
      Rectangle {
          width: 300
          height: 300
          Text {
              anchors.fill: parent
              text: "Hello world"
              fontSizeMode: Text.Fit
              minimumPointSize: 10
          }
      }
      

      (but it seems to work for some people : https://bugreports.qt-project.org/browse/QTBUG-28084)
      (Original message on mailling list : http://lists.qt-project.org/pipermail/interest/2013-February/006101.html)

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            gbdivers Guillaume Belz
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes