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

Qt CSS: gradient on text restarts after every upper-case letter with small-caps

    XMLWordPrintable

Details

    Description

      If a gradient is set on a text with a stylesheet, the gradient apply to the whole text.
      If there is a font-variant "small-caps", the gradient restart for each upper-case letter.

      To reproduce the problem, compare the two following stylesheet in Designer:
      QLabel {
      font-variant: small-caps;
      color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(0, 0, 0, 255), stop:1 rgba(255, 255, 255, 255));
      }

      and
      QLabel {
      color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(0, 0, 0, 255), stop:1 rgba(255, 255, 255, 255));
      }

      Attachments

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

        Activity

          People

            dedietri Gabriel de Dietrich (drgvond)
            poulain Benjamin Poulain (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes