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

Broken text rendering with "style: Text.Sunken" on Windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P4: Low P4: Low
    • 5.15.0 Alpha
    • 5.2.0 RC1, 5.8.0

      A Qt Quick Application from Creator's wizard looks like this:

      If you add "style: Text.Sunken", "style: Text.Raised" or "style: Text.Outline" to the Text item, it will look like this:

      Here's the full code:

      import QtQuick 2.0
      
      Rectangle {
          width: 360
          height: 360
          Text {
              style: Text.Sunken
              text: qsTr("Hello World")
              anchors.centerIn: parent
          }
          MouseArea {
              anchors.fill: parent
              onClicked: {
                  Qt.quit();
              }
          }
      }
      

      Text rendering should still show correct letters after a style was being added.

        1. default.png
          19 kB
          Robert Löhning
        2. sunken.png
          14 kB
          Robert Löhning
        3. default.png
          20 kB
          Mike Trahearn
        4. raised.png
          14 kB
          Mike Trahearn
        5. sunken.png
          14 kB
          Mike Trahearn
        6. StyleTest.png
          25 kB
          Mike Trahearn
        7. styletest.zip
          2 kB
          Mike Trahearn
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            w00t Robin Burchell
            rlohning Robert Löhning
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes