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

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

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        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

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes