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
          default.png
          19 kB
        2. sunken.png
          sunken.png
          14 kB
        3. default.png
          default.png
          20 kB
        4. raised.png
          raised.png
          14 kB
        5. sunken.png
          sunken.png
          14 kB
        6. StyleTest.png
          StyleTest.png
          25 kB
        7. styletest.zip
          2 kB
        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