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

Border still drawn on Rectangle elements when border.width == 0

    XMLWordPrintable

Details

    • 77342ad3e7beecb75c136ee26c0c77cd1a41b415

    Description

      The documentation for the Rectangle component regarding border.width states "A width of 1 creates a thin line. For no line, use a width of 0 or a transparent color."

      Loading the following in qmlviewer results in a rectangle with a 1-pixel border:

      import QtQuick 1.0
      
      Item {
      	width : rect.width * 2
      	height : rect.height * 2
      
      	Rectangle {
      		id : rect
      		width : 100
      		height : 100
      		x : 10
      		y : 10
      
      		border.width : 0
      		border.color : "red"
      	}
      }
      

      The size of the border scales along with the rest of the element if a Scale transformation is applied, unlike a cosmetic QPen.

      Attachments

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

        Activity

          People

            martjone Martin Jones (closed Nokia identity) (Inactive)
            robertknight Robert Knight
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes