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

font.pointSize and font.pixelSize do not coexist peacefully

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.7.0
    • 4.7.0
    • None
    • Linux x86_64; fedora 12; qt-qml from around april 6th compiled with gcc version Red Hat 4.4.3-4
    • fac110fd9313972f001bf8b52b0254cc2d67ef66

    Description

      Running the following QML reveals a problem

      import Qt 4.6

      Rectangle {
      width: 200
      height: 200
      Column{
      Text

      { text: "Hello World" font.pixelSize: 24 }

      Text

      { text: "Hello World" font.pointSize: 400 }

      }
      }

      The problem is that the second text has its point size ignored. Instead, a warning is given that both point size and pixel size are set. This warning (and behaviour) should only happen when both pointSize and pixelSize are set on the same element, not on different elements in the same component.

      If the first text is commented out, the pointSize on the second text is set correctly.

      Attachments

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

        Activity

          People

            martjone Martin Jones (closed Nokia identity) (Inactive)
            aalpert-nokia Alan Alpert (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes