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

Gradient of nested rectangle is drawn with 1px margin

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Duplicate
    • Affects Version/s: 4.7.1
    • Fix Version/s: None
    • Component/s: (Inactive) OpenVG
    • Labels:
      None
    • Environment:
      Nokia Qt Sdk 4.7.1 (dev. edition), Qt Symbian SDK 0.9

      Description

      Consider following code:

      import Qt 4.7
      Rectangle {
      width: 360
      height: 640
      color: "red"
      Rectangle {
      y: 50
      x: 0
      gradient: Gradient {
      GradientStop

      { position: 0 color: "#ffffff" }

      GradientStop

      { position: 1 color: "#999999" }

      }
      width: 360
      height: 600
      }
      }

      Works OK on Windows.

      On S^3 there is vertical red line al the left.

      Setting value "x" to "-1" for internal rectangle hides vertical line, and no lines appears at right. Setting "x" to "-2" shows vertical red line at the right.

      I've made test app that demonstrates all those cases, sources and screenshot is it attach.

        Attachments

        1. GradientFun2.zip
          43 kB
        2. Scr000001.jpg
          Scr000001.jpg
          20 kB

          Issue Links

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

            Activity

              People

              Assignee:
              jabarron Jason Barron
              Reporter:
              stipa Lev Stipakov
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes