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

Gradient of nested rectangle is drawn with 1px margin

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 4.7.1
    • (Inactive) OpenVG
    • None
    • 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. Scr000001.jpg
          Scr000001.jpg
          20 kB
        2. GradientFun2.zip
          43 kB

        Issue Links

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

          Activity

            People

              jabarron Jason Barron
              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