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

Gradient of nested rectangle is drawn with 1px margin

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • 4.7.1
    • (Inactive) OpenVG
    • None
    • Nokia Qt Sdk 4.7.1 (dev. edition), Qt Symbian SDK 0.9

      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.

        1. GradientFun2.zip
          43 kB
        2. Scr000001.jpg
          Scr000001.jpg
          20 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes