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

QStyleSheet: gradient background image incorrectly rendered.

    XMLWordPrintable

Details

    Description

      209123 introduced a regression into stylesheet handling of gradient background image. The regression appears in 4.5.0 onwards.

      To reproduce:

      "QPushButton"
      "

      {" "background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(255, 0, 0), stop: 1 rgb(0, 255, 0));" "border-image: url(border_normal.png) 2 2 2 2 stretch stretch;" "border: 2px transparent;" "}

      ";

      I reproduced this in Windows.

      Try with 4.4.3 and then 4.5.0 - the 4.5.0 image appears to be mixed with the background colour of the widget and the gradient is not correct for a linear gradient.

      Attachments

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

        Activity

          People

            rodal Samuel Rødal
            cattell Matthew Cattell (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes