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

Stylesheet rounded border gradient issue

    XMLWordPrintable

Details

    Description

      Using the following style sheet on a QFrame, please compare the left border linear gradient color to the right control border:

      QFrame {
            border-bottom-left-radius:50px;
            border-top-left-radius:50px;
            border-width: 20px;
            border-style: solid;
            border-top-color: red;
            border-left-color:  qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 red, stop: 1 green);
            border-right-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 red, stop: 1 green);
            border-bottom-color: green;
            }
      

      Calculations for the qlineargradient seem to be wrong when using a radius on the border.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            dakovaci Daniel Kovacic
            Votes:
            12 Vote for this issue
            Watchers:
            12 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes