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

Characters of semi-transparent Text overlap

    XMLWordPrintable

Details

    Description

      You can see this in the example below:

      import QtQuick 2.0
      import QtQuick.Window 2.0
      import QtQuick.Controls 1.3
      
      Window {
          id: window
          visible: true
          width: 600
          height: 300
      
          Text {
              font.pixelSize: pixelSizeSlider.value
              font.letterSpacing: letterSpacingSlider.value
              opacity: 0.5
              text: !typeSwitch.checked ? "Hello" : "يتعلّقم"
              anchors.top: parent.top
              anchors.topMargin: 10
              anchors.horizontalCenter: parent.horizontalCenter
          }
      
          Column {
              anchors.horizontalCenter: parent.horizontalCenter
              anchors.bottom: parent.bottom
      
              Text {
                  text: "Arabic"
              }
      
              Switch {
                  id: typeSwitch
              }
      
              Text {
                  text: "Pixel size"
              }
      
              Slider {
                  id: pixelSizeSlider
                  minimumValue: 30
                  maximumValue: 200
              }
      
              Text {
                  text: "Letter spacing"
              }
      
              Slider {
                  id: letterSpacingSlider
                  minimumValue: -30
                  maximumValue: 30
              }
          }
      }
      

      Perhaps this is unavoidable, but it would be nice if the opacity was applied to the text as a whole, instead of individual characters.

      Attachments

        1. snapshot22.png
          snapshot22.png
          16 kB
        2. snapshot23.png
          snapshot23.png
          20 kB

        Issue Links

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

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              mitch_curtis Mitch Curtis
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes